Flagrantly ignoring the 10% rule

My friend Michael J. Swart has a rule of thumb he calls Swart’s Ten Percent Rule. If you’re using over 10% of what SQL Server restricts you to, you’re doing it wrong. After a recent discussion on Twitter, I wondered what it would look like if I had 32,767 databases on one instance of SQL
-> Continue reading Flagrantly ignoring the 10% rule

counting pennies

Price increase for Azure in Canadian dollars

On 1 December 2018, Microsoft is increasing Azure subscription prices in Canadian dollars by 5%. The following is taken directly from the email I received on 1 November 2018. Starting December 1, 2018, prices for Azure services in the Canadian dollar will increase by 5 percent to more closely align to Azure pricing in US
-> Continue reading Price increase for Azure in Canadian dollars

Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()

Last time we looked at adding or subtracting date parts using the DATEADD() T-SQL system function. This week we see how to calculate the difference between two date-time values using DATEDIFF() and DATEDIFF_BIG(). The syntax for both functions is identical:

The only functional difference between them is that the DATEDIFF_BIG() returns values as a
-> Continue reading Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()

Dates and Times in SQL Server: DATEADD()

We are now in the home stretch of the long-running series about dates and times in SQL Server and Azure SQL Database. This week we look at one of my favourite T-SQL functions when it comes to dates and times: DATEADD(). Syntax As with similar functions, DATEADD can do arithmetic on dates as well as
-> Continue reading Dates and Times in SQL Server: DATEADD()

PASS Summit Speaker Idol 2018

This scheduled post is coming to you from Seattle, where the PASS Summit 2018 has just kicked off. Because it is a scheduled post, I have no idea what announcements from the convention will be made today and tomorrow, but rest assured that they will be worth looking at. In the meantime, I have been
-> Continue reading PASS Summit Speaker Idol 2018

The Golden Gate Bridge partially hidden by clouds

String or binary data would be truncated: get the full picture in SQL Server 2017

SQL Server 2019 Preview (CTP 2.0) introduced a long-awaited improvement to an error message that’s been around in SQL Server for many years, but was unhelpful:

Thanks for nothing, error message. Which table? Which column? What data? This is how the error message looks now:

Notice how the table, column and value are
-> Continue reading String or binary data would be truncated: get the full picture in SQL Server 2017

Create a slipstream installer for SQL Server on Windows

Since the release of SQL Server 2008 Service Pack 1 in April 2009, it has been possible to install SQL Server with media that includes the latest patches, whether they be Service Packs (for SQL Server 2016 and prior), Cumulative Updates, and even hotfixes. There was the hint of a promise with the new servicing
-> Continue reading Create a slipstream installer for SQL Server on Windows

SQL Server logo

Fix SQL Server with one click

Tempting headline, isn’t it? It might even seem like clickbait, but that’s not the intention. The SQL Server default configuration is not recommended for production environments, and yet I have worked on many production environments that have been set up by people who don’t know that the default configurations are not recommended. These same people
-> Continue reading Fix SQL Server with one click

Changes to the SQL Server servicing model (Cumulative Updates)

On Monday of this week, Microsoft announced changes to the servicing model for SQL Server, starting with SQL Server 2017. From today onward, we can expect to see the following during the first five years after release (known as Mainstream Support): One Cumulative Update per month for the first twelve months. One Cumulative Update every
-> Continue reading Changes to the SQL Server servicing model (Cumulative Updates)