Tag Archives: T-SQL
-
Using a date or int column as the clustered index.
13December 1, 2014 by Kenneth Fisher
The other day I was answering a question about clustered indexes and it lead indirectly to a twitter conversation on …
Continue reading -
Putting sp_ at the beginning of your stored procedure.
1November 24, 2014 by Kenneth Fisher
Every now and again you see articles and posts about putting sp_ at the beginning of a stored procedure. So …
Continue reading -
You don’t really need ORDER BY do you?
8November 19, 2014 by Kenneth Fisher
You see dozens of blog posts and articles about how the order of a result set is not guaranteed without …
Continue reading -
Using T-SQL to populate a Central Management Server
6November 17, 2014 by Kenneth Fisher
We have been using a CMS (Central Management Server) at my office for the last few years. Even beyond the …
Continue reading -
Adding a column to the primary key.
13November 13, 2014 by Kenneth Fisher
Every now and again you realize that the primary key for a table does not uniquely describe a row. Not …
Continue reading -
A script to list the DTS connection information for every package on the instance.
2October 27, 2014 by Kenneth Fisher
For those of you who have moved completely to SQL 2012 & 2014, Lucky you and don’t judge! For the …
Continue reading -
Force only certain values to be unique
1October 22, 2014 by Kenneth Fisher
I thought of something rather interesting the other day while answering a question asking for help with some table structures. …
Continue reading -
UNION vs UNION ALL
7October 16, 2014 by Kenneth Fisher
You might be wondering why I’m going into such a simple subject. Well the way I see it there are …
Continue reading -
You can’t use aggregate/windowing functions with CROSS APPLY
11October 6, 2014 by Kenneth Fisher
One of my favorite features of CROSS APPLY is the ability to use it instead of a calculated variable. Well …
Continue reading





