Tag Archives: T-SQL

  1. Modulo!

    7

    April 14, 2016 by Kenneth Fisher

    I love this somewhat obscure mathematical operator. All it does is return the remainder of a division statement but even …
    Continue reading

  2. Name the schema when you create an object (or else)

    1

    April 6, 2016 by Kenneth Fisher

    This is one of those frequently ignored best practices. When you create an object, specify the schema where it will …
    Continue reading

  3. Complex/Conditional ORDER BYs

    1

    April 4, 2016 by Kenneth Fisher

    Typically it’s considered best to run your queries without an ORDER BY and let the application do any sorting needed. …
    Continue reading

  4. Why you shouldn’t use SELECT *

    2

    March 28, 2016 by Kenneth Fisher

    I answered an interesting question on SE today (ever notice how many posts come from stuff I read on forums?) …
    Continue reading

  5. TOP 1 killed my performance; Rob Farley helped me resurrect it.

    15

    March 21, 2016 by Kenneth Fisher

    tl;dr; There is no short version of this. It’s LONG. It’s interesting but you might want to skip it if …
    Continue reading

  6. Take caution when altering a column using TSQL

    1

    February 17, 2016 by Kenneth Fisher

    When developing in SQL Server you are eventually going to have to modify a column or two (at least). And …
    Continue reading

  7. varchar(1) VS char(1)

    5

    February 15, 2016 by Kenneth Fisher

    The other day I made a somewhat flip coment on twitter. (I know, everyone is shocked right?) varchar(1) Really? It’s …
    Continue reading

  8. To the page and back again

    1

    January 18, 2016 by Kenneth Fisher

    To the page It’s not one of those things you have to do frequently but every now and again you …
    Continue reading

  9. What is RESULT SETS?

    12

    January 14, 2016 by Kenneth Fisher

    I was reading some code the other day and it included the statement RESULT SETS. I’d never seen it before …
    Continue reading

  10. What is the current database context?

    3

    December 21, 2015 by Kenneth Fisher

    Every now and again it can be very helpful to know what the current database context is when you are …
    Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 3,975 other subscribers

Follow me on Twitter

Archives

ToadWorld Pro of the Month November 2013