Code Repository

This page is a repository for the code found in some of my blog posts.
If you like my code, feel free to download it and use it.
Archived WordPress comments (4)

Historical comments from the original site; this archive is read-only.

  1. David Warner
    Good Morning,
    I have had an issue with the pre-2012 version of the DBCC CheckDB script ... in the Catch statement on line 279 I have had to insert the error handling that you provide as part of lines 439 to 446 ... my error was that TempDB wasn't sized correctly and the only error I received was "The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction. [SQLSTATE 42000] (Error 50000)" with the additional error handing it logged the reason for the job failure as lack of space in TempDB. Aside from that it is extremely useful piece of code! :-D
    1. spaghettidba
      Good to hear!
      I hope you solved your issues with the new version.
  2. Dirk
    Bad link (sp_Template.sql) - did not check the others
    1. spaghettidba
      Thanks for the heads-up! It was Dropbox that decided to change permalinks. Got rid of them and use gists now. Thanks again!

About

Gianluca Sartori

Founder and CEO of Quantumdatis · Microsoft Data Platform MVP

Portrait of Gianluca Sartori

I have more than 20 years of experience designing, managing, diagnosing, and optimizing Microsoft data platforms. I have worked hands-on with business-critical production environments and shared practical experience at international conferences. My technical articles and community work have earned me Microsoft Data Platform MVP recognition for 13 years.

My areas of focus include:

  • SQL Server performance and architecture
  • High availability and disaster recovery
  • Migration, automation, and mentoring

I am a SQL Server and Oracle DBA based in Conegliano, Italy. I have worked with SQL Server since version 7 and Oracle since 11g. Before focusing on data platforms, I worked as a Java, .NET, Visual Basic, and ASP developer.

[Read More]