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[…]

Activity Monitor with % Prcessor time graph greyed out

SSMS Activity Monitor greyed out Processor graph

There have been a few posts about SSMS Activity Monitor recently. First Kendra Little (b | t) talked about why she doesn’t like it and then Guy Glanster (b | t) and Matan Yungman (b | t) also discussed the failings of Activity Monitor on their SQL Server Radio podcast – mainly it’s to do Read more about SSMS Activity Monitor greyed out Processor graph[…]

SSDT error SQL71501: Procedure: contains an unresolved reference to an object

I’ve recently started to use SQL Server Data Tools (SSDT) a lot more in database development. And I must say that I’m quite impressed. Having previously used database projects in VS, and fought with msbuild, SSDT is much easier. If you are starting out with SSDT, then I can’t recommend enough that you read Jamie Read more about SSDT error SQL71501: Procedure: contains an unresolved reference to an object[…]