Tag Archives: language sql

  1. sp_SrvPermissions & sp_DBPermissions V3.0

    Leave a comment

    November 4, 2013 by Kenneth Fisher

    These are a couple of stored procedures I wrote to help me with security research. Each sp returns three data …
    Continue reading

  2. 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

  3. 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

  4. 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

  5. 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

  6. Why you should know how to script as well as use the GUI

    Leave a comment

    October 14, 2013 by Kenneth Fisher

    Personally I’ve always enjoyed learning the T-SQL for any given task. The GUI is usually pretty easy to figure out …
    Continue reading

  7. 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

  8. The MERGE statement doesn’t have a WHERE clause.

    5

    September 30, 2013 by Kenneth Fisher

    What the heck? Even indexes have WHERE clauses these days. I can’t remember what I was reading when I saw …
    Continue reading

  9. DBA Myths: You can’t use an alias in a DELETE statement

    3

    September 24, 2013 by Kenneth Fisher

    Recently I wrote about the myth that you can’t use an alias in an UPDATE statement. You can of course, …
    Continue reading

  10. sp_DBPermissions V2.0

    1

    September 18, 2013 by Kenneth Fisher

    Last month I posted my stored procedures sp_SrvPermissions and sp_DBPermissions. I’m posting V2.0 of each with a few fixes. The …
    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