Category Archives: T-SQL

  1. Constructing a datetime from an integer date and an integer time.

    3

    August 15, 2019 by Kenneth Fisher

    Occasionally I’ve seen date and time stored separately as integers. This had some practical applications back before we had date …
    Continue reading

  2. Temporary stored procedures

    Leave a comment

    August 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

  3. Optional vs Required parameters in Stored Procedures

    7

    July 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

  4. Custom error messages

    1

    July 24, 2019 by Kenneth Fisher

    I’m sure lots of you have used the function RAISERROR to handle an error caused by your code. The problem …
    Continue reading

  5. Short circuiting an AND

    2

    July 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

  6. What permissions do temp stored procedures use?

    4

    June 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

  7. It’s interesting how an OR short circuits.

    23

    June 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

  8. Does the case expression short circuit?

    8

    June 13, 2019 by Kenneth Fisher

    Let’s start with definitions: CASE Expression: This is basically an inline IF .. ELSE IF .. ELSE IF ….. etc …
    Continue reading

  9. SQL Homework – June 2019 – Property functions

    Leave a comment

    June 3, 2019 by Kenneth Fisher

    Yep. It’s time for your monthly homework session. You’ve finished last months right? Please turn it in over there. This …
    Continue reading

  10. I’m moving my permissions scripts to GitHub

    2

    May 30, 2019 by Kenneth Fisher

    I’ve written very few things that I’m more proud of than my permissions scripts, sp_SrvPermissions and sp_DBPermissions. These scripts are …
    Continue reading

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

Join 2,528 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013