Tag Archives: T-SQL
-
The curious case of CHAR(0)
12November 14, 2019 by Kenneth Fisher
Over the years I’ve seen quite a few strange things with SQL Server. This one may not have been the …
Continue reading -
SQL Homework – October 2019 – Code review (self and peer)
1October 2, 2019 by Kenneth Fisher
Every database person I’ve ever met writes at least some code at some point in their career. That code might …
Continue reading -
When were the statistics last updated and how many rows were sampled?
1September 4, 2019 by Kenneth Fisher
TL;DR; Final query is at the bottom. Every now and again (particularly when someone is having performance problems) I’ll get …
Continue reading -
Setting Trigger Order
Leave a commentAugust 26, 2019 by Kenneth Fisher
If you can help it you probably shouldn’t be using triggers. But if you have to use a trigger you …
Continue reading -
Why do DBAs dislike loops?
5August 22, 2019 by Kenneth Fisher
If you started out as a developer you were probably taught how important loops are. They are one of the …
Continue reading -
Temporary stored procedures
Leave a commentAugust 7, 2019 by Kenneth Fisher
tl;dr; Temporary stored procedures are excellent for testing pieces of code that are going to go into (or come from) …
Continue reading -
Optional vs Required parameters in Stored Procedures
13July 29, 2019 by Kenneth Fisher
If you are executing a stored procedure with a bunch of parameters it can be a bit of a pain …
Continue reading -
Short circuiting an AND
4July 15, 2019 by Kenneth Fisher
The other day I did a post on how an OR short circuits. It was a somewhat unusual type of …
Continue reading -
What permissions do temp stored procedures use?
6June 19, 2019 by Kenneth Fisher
In a performance tuning class I recently took with Brent Ozar (b/t) he mentioned temporary stored procedures and an interesting …
Continue reading -
It’s interesting how an OR short circuits.
24June 17, 2019 by Kenneth Fisher
I recently did a post on the case expression short circuting and received a very very interesting comment from Chad …
Continue reading





