SQL Monitor Alerts in Microsoft Teams

A customer of mine uses Redgate SQL Monitor to monitor their production SQL estate. They make use of the alerts via email and Slack. Recently they started looking in to moving away from Slack as their corporate communications tool, and use Microsoft Teams instead. SQL Monitor does not (yet – see below) have any native Read more about SQL Monitor Alerts in Microsoft Teams[…]

Closed answer technical tests and when ‘it depends’ isn’t an option

Many months ago when I was working as a SQL Server contractor, I was approached by a recruiter who was looking to fill a contract role, and as part of the initial screening, the client had asked all potential candidates to answer a simple 4-question, true-or-false SQL quiz. When I read the question, and the Read more about Closed answer technical tests and when ‘it depends’ isn’t an option[…]

Building a string of values in T-SQL

It is often far too easy to experience some behaviour in SQL Server, and then extrapolate your belief from that. One example that is seen frequently on forums is the simplistic case of concatenating values into a scalar variable, however the logic that is commonly assumed is false. Take the example USE tempdbGOIF OBJECT_ID(‘CharsTable’,’U’) IS Read more about Building a string of values in T-SQL[…]

Helping the Query Optimizer with Constraints

The Query Optimizer in SQL Server is an amazing piece of code. It takes any query we choose to throw at it, evaluates many different ways of executing that query and, generally speaking, comes up with an execution plan that is going to be good enough. And it does all that in milliseconds. Sometimes it Read more about Helping the Query Optimizer with Constraints[…]

Leeds SQL Server User Group – 1 December 2016

Returned to the Leeds SQL Server User Group for the first time in a long time.  I previously worked in the office building that hosts the user group, and wow has it changed! Not only was it a long overdue return, but it was also my first time presenting at Leeds too.  Here are the Read more about Leeds SQL Server User Group – 1 December 2016[…]

Automate DACPAC refresh with PowerShell

I’m working on a project where we have recently started to use SSDT more and more. One feature I make use of, is Database References [http://schottsql.blogspot.co.uk/2012/10/ssdt-external-database-references.html], and use DACPACs as the source of these references. To keep this simple for the distributed development team and have one version of the truth, I keep the DACPACs Read more about Automate DACPAC refresh with PowerShell[…]