Tag Archives: sql statements

  1. Undocumented functionality in FORMATMESSAGE

    2

    December 9, 2013 by Kenneth Fisher

    I was reading a rather interesting post on stackexchange “Why is % a forbidden char in a THROW message?” (which …
    Continue reading

  2. Insert into a table using only default values

    4

    December 4, 2013 by Kenneth Fisher

    A while back I talked about the DEFAULT keyword and using it to tell SQL to use the default value …
    Continue reading

  3. Finding active DTS packages

    9

    November 27, 2013 by Kenneth Fisher

    DTS is dead, long live SSIS. Way back when SQL 2005 was announced then released DTS was pronounced DOA. SSIS …
    Continue reading

  4. Finding the metadata for a query

    2

    November 25, 2013 by Kenneth Fisher

    You know I occasionally find it interesting how I learn new things. I was running through a practice test for …
    Continue reading

  5. A pattern to do beginning of period calculations.

    Leave a comment

    November 20, 2013 by Kenneth Fisher

    Beginning of period calculations are common things. Rolling month reports, queries to pull everything from last month etc require beginning …
    Continue reading

  6. Adding a column to a table with a default (NULL vs NOT NULL)

    4

    October 30, 2013 by Kenneth Fisher

    There are lots of ways to learn new things, or be reminded of old things. One of my favorites is …
    Continue reading

  7. Unexpected truncation in FETCH

    Leave a comment

    October 23, 2013 by Kenneth Fisher

    Yes I’m talking about FETCH as in a cursor, yes everyone hates cursors. But you know cursors are like anything …
    Continue reading

  8. A look at comments

    17

    October 21, 2013 by Kenneth Fisher

    Everyone knows that we should include comments in our code right? On the other hand the vast majority of us …
    Continue reading

  9. Query to compare indexes between two tables

    Leave a comment

    October 16, 2013 by Kenneth Fisher

    We have a set of databases at my office that use the load and swap method of loading data with …
    Continue reading

  10. Use TOP instead of SET ROWCOUNT

    13

    October 7, 2013 by Kenneth Fisher

    Both TOP and SET ROWCOUNT are both valid methods of limiting the result sets from a query. They are however …
    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