I’m delighted to announce I’ll be speaking at the SQLBits conference in March 2022! I’m not delivering one session, but two this time. Well, actually, for one session I’m co-presenting with Mala Mahadevan. I’m really looking forward to this session, as it’s a not-well known topic (I hadn’t heard about it till Mala told me everything about it): Finding and Fixing T-SQL Anti-Patterns with ScriptDOM. Yups, bet you haven’t heard of it either 🙂 ScriptDOM is included with SQL Server and it’s a bunch of .NET classes (which you can also use in PowerShell of course) that allow you to parse T-SQL automatically and search for certain patterns in the T-SQL script. For example, you can use it to find out if those sneaky developers have been using SELECT * or NOLOCK. The abstract:
Quality code is free of things we call ‘anti-patterns’ – nolock hints, using SELECT *, queries without table aliases and so on.
We may also need to enforce certains standards: naming conventions, ending statements with semicolons, indenting code the right way etc. Furthermore, we may need to apply specific configurations on database objects, such as to create tables on certain filegroups or use specific settings for indexes.All of this may be easy with a small database and a small volume of code to handle, but what happens when we need to deal with a large volume of code? What if we inherit something full of these anti-patterns, and we just don’t have time to go through all of it manually and fix it? But suppose we had an automated utility that could do this for us? Even better, if we could integrate it in our Azure Devops pipelines?
ScriptDOM is a lesser-known free tool from SQL Server DacFx which has the ability to help with finding programmatic and stylistic errors (a.k.a linting) in T-SQL code.It can even fix some of these errors!
In this session we will learn about what it is, how we can harness its power to read code and tell us what it finds, and actually fix some of those anti-patterns.
Join us for this highly interactive and demo-packed session for great insights on how to improve the quality of your code. Basic knowledge of T-SQL and Powershell is recommended to get the most out of this session.
The other session is my “Introduction to Snowflake on Azure”. Both sessions are 50 minutes long and will be presented virtually. SQLBits itself is hybrid, meaning there will be on-premises sessions, but also a number of virtual sessions. You can find more info on the SQLBits website. The theme at SQLBits this year is arcade gaming:
I recently read the book Agile Data Warehouse Design - Collaborative Dimensional Modeling, from Whiteboard…
You can find the slides for the session Building the €100 data warehouse with the…
I was asked to do a review of the book Microsoft Power BI Performance Best…
This is a quick blog post, mainly so I have the code available if I…
Praise whatever deity you believe in, because it's finally here, a tenant switcher for Microsoft…
This book was making its rounds on social media, and the concept seems interesting enough…