Tag Archives: Microsoft SQL Server
-
DBA Myths: Is an identity column always unique, in order, and without gaps?
6November 20, 2019 by Kenneth Fisher
Identity columns are all over the place. Probably 80-90% of the tables I see have them and they are almost …
Continue reading -
DBA Myths: The system sessions are the ones with a session_id 50 or less
Leave a commentNovember 18, 2019 by Kenneth Fisher
Anecdotally any session_id that’s 50 or less is going to be a system session and anything over 50 will be …
Continue reading -
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 – November 2019 – SSMS built in reports
1November 4, 2019 by Kenneth Fisher
Time for some homework again. I know Pass Summit is this week so you may be a bit busy but …
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 -
Debugging techniques (focusing on T-SQL)
13September 23, 2019 by Kenneth Fisher
tl;dr; Add PRINT and/or SELECT statements. Comment/uncomment out pieces of code to isolate problems. Change INSERT/UPDATE/DELETE statements to SELECTs. Disclaimer: …
Continue reading -
DBA Myths: CHECKDB runs on startup.
2September 16, 2019 by Kenneth Fisher
If you look at your error log you’ll (hopefully) see entries like this shortly after the instance startup: CHECKDB for …
Continue reading -
DMV with SQL Server Service info (including the service accounts)
5September 12, 2019 by Kenneth Fisher
I recently found this DMV and couldn’t wait to share. sys.dm_server_services What’s so great about it? For each service for …
Continue reading -
My fantasy SQL feature(s)? T-SQL Tuesday #118
3September 10, 2019 by Kenneth Fisher
It’s fantasy football time again? Oh, fantasy feature? Oh, yea, that makes a lot more sense for #tsql2sday. What’s #tsql2sday? …
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





