Tag Archives: T-SQL

  1. Counting NULLs


    July 16, 2018 by Kenneth Fisher

    Recently I was doing one of Kendra Little’s (b/t) SQL Server quizzes. Specifically the Quiz: COUNT() in SQL Server. As …
    Continue reading

  2. Code I’d Hate To Live Without: T-SQL Tuesday #104


    July 10, 2018 by Kenneth Fisher

    It’s TSQL Tuesday again! This time our respected host is Bert Wagner (b/t). Quick aside, if you haven’t seen his …
    Continue reading

  3. SQL Puzzle – FizzBuzz3d


    June 27, 2018 by Kenneth Fisher

    I thought for the end of the month it would be fun to do another T-SQL Puzzle. In this case …
    Continue reading

  4. Strings vs Identifiers


    June 20, 2018 by Kenneth Fisher

    A common mistake, and one I make frequently myself is to use a string in place of an identifier, or …
    Continue reading

  5. The identity column, the insert and the linked server.


    June 14, 2018 by Kenneth Fisher

    tl;dr; When doing an insert across a linked server you have to include the list of fields to be inserted …
    Continue reading

  6. Updated query to view data in the error log


    May 31, 2018 by Kenneth Fisher

    This is one of my favorite scripts. It pulls all of the data from the error log and dumps it …
    Continue reading

  7. Deleting a lot of data


    April 12, 2018 by Kenneth Fisher

    I recently had the task of deleting a bit over a billion rows from a table. Now I could have …
    Continue reading



    March 15, 2018 by Kenneth Fisher

    I’d never seen ORIGINAL_DB_NAME until recently and I thought it would be interesting to highlight it out, and in particular …
    Continue reading

  9. Windowing without a partition by or an order by


    February 21, 2018 by Kenneth Fisher

    If you’ve never worked with windowing functions they look something like this: The other day someone mentioned that you could …
    Continue reading

  10. Synonyms, how and why.


    February 15, 2018 by Kenneth Fisher

    Did you know SQL Server has a thing called a synonym? It’s not something you see used very often even …
    Continue reading

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

Join 2,442 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013