Common Table Expressions are a great way to simplify complex derived table queries. If it makes sense to break out one derived table or subquery into a CTE, it can make sense to do multiple CTE’s. To use multiple CTE’s in a single query you just need to: Finish the first CTE Add a comma Declare the name and optional …

Multiple CTE’s in a single Query Read more »

In preparation for an upcoming SQL Saturday presentation I have created another report to add to the FREE SQL Server Health reports project. The new Index Statistics Report is the 8th report in the series, intended to give DBA’s and database developers access to the information they need to analyze the health of their database.   Here is a screen …

Index Statistics Report added to the FREE SQL Server Health Reports Read more »

Normally by blog/website is focused only on SQL Server topics, but this just jumped out at me and I have to share it.   The holiday shopping season is here again, and so are the scammers.  Here is a copy of an email message that I received today, wanting a few simple things like name, age, eye color, home city, …

It is sad when Santa Claus wants to break into your bank account. Read more »

In preparation for an upcoming SQL Saturday presentation I have created another report to add to the FREE SQL Server Health reports project. This report has been replaced with the Backup Report in the Database Health Project. The Backup Set Report has been added to the SQL Health Reports.  The Backup Set Report  is the 7th report to be added to the Database …

Backup Set Report added to FREE Server Health Reports Read more »