Rapid SQL Server test instances with Docker and Azure

As a DBA, developer, and more importantly the creator of SQLWATCH.IO, I need the ability to rapidly deploy and test different SQL Server configurations or test different upgrade variations from one version of SQLWATCH to another. This is quite laborious,...

How to intelligently auto-cycle ERRORLOG using T-SQL

In my earlier post, I described different ways to read very large SQL Server Log (ERRORLOG) – 5GB – to be exact. However, this was a reaction to something that has already happened. In this post, I will show you how to prevent this from happening at...

Add colours to the ERRORLOG

When dealing with large logs I often find it difficult to find the information we are looking for. To make it easier, we can use PowerShell to add colours the ERRORLOG based on string patterns Note this will only work when using the Select-String command....

Ransomware and SQL Server – how to protect data

What is ransomware Ransomware is a type of malicious software that locks access to user files until a ransom is paid. Quite common “locking mechanism” is by encrypting all files on a user computer, server or even the entire network. Encryption is a process...

How to read large SQL Server ERRORLOG (the 5GB test)

I often come across large ERRORLOG mainly because they are not being recycled frequent enough, or not at all. Sometimes, despite the frequent recycling, the ERRORLOG can grow to an unmanageable size. This has recently happened to me during a large transaction rollback...

TSQL Tuesday #127 – Non SQL Tips and tricks

This month’s T-SQL Tuesday is hosted by Kenneth Fisher and is quite interesting as it has nothing to do with T-SQL. Here’s my very short contribution Multi-line typing with Alt Mind blowing hack that works in majority of text and code editors. Press Alt...

T-SQL Tuesday #126 – [email protected]

This is my first T-SQL Tuesday contribution! If you are new to this concept, as I was, you can read more about it on the T-SQL Tuesday homepage. This month’s invitation is from Glenn Berry. You can read more about the invitation by clicking on the logo below:...