SQL Pip
SQL Server notes, growing one post at a time

-
SQLBits turns 20: why I keep going back
SQLBits returns to ExCeL in London in June 2027 for its 20th running. Here is how I first ended up at SQLBits in York in 2010, and why I think you should come too.
-
Setting up a big query service account.
I have several posts I am working on for the future that will require big query service account keys. So rather than repeating this in the posts this will give the posts a reference to…
-
Searching for underscores with LIKE
I got caught out by a Gotcha which has caught me out many times and hopefully wont again ( but it will). I was looking for a specific piece of text within a sql module…
-
SQL Server and sending messages to Slack. ( or how I stopped worrying about emails) Part 3
In Part 1 and 2 of this series I demonstrated how to create a Slack Integration and then use Azure Data Studio to Test the integration. These will need to be completed for the following…
-
SQL Server and sending messages to Slack. ( or how I stopped worrying about emails) Part 2
This is part 2 of a set of articles Part 1 which details the setting up of the Slack Integration can be found SQL Server and sending messages to Slack. ( or how I stopped…
-
SQL Server and sending messages to Slack. ( or how I stopped worrying about emails) Part 1
Part 1 of a series of 3. Details how to create a Slack Bot. Later parts of the series explain how to use Azure Data Studio and SQL Server to send messages to this Slack…
-
Subqueries for XML blobs without self-referencing
One of the issues I see several times within SQL Server is people creating SQL Subqueries that reference the parent query so that an XML blob can be created. In this example The simple table…
-
Auditing Your Database Changes
SQL Server can capture Database level Trigger information using XML. I personally use this on my home PC’s because I’m poor and can’t afford one of those amazing DB Source control products that are out…
-
Recursive XML branches
One of the main features of XML is that it handles hierarchical data structures. I agree that so does SQL either using the hierarchy variable or creating a Recursive CTE. but nothing compares to the…
-
Enforcing XML Document Structure
by default the xml variable supports a content structure of xml this is very useful if you are constructing an xml blob. It works for typed and untyped code, and it has it’s place. The…



