Category Archives: Dynamic SQL

  1. sp_DBPermissions

    3

    August 14, 2013 by Kenneth Fisher

    Last week I posted a series of database permissions scripts. I’ve been using them quite a bit over the last …
    Continue reading

  2. Database Permissions Queries

    3

    August 5, 2013 by Kenneth Fisher

    Over the last year of blogging my thoughts and queries I’ve discovered something interesting. I posted Where is my Backup? …
    Continue reading

  3. Generic Dynamic SQL Stored Procedure

    5

    July 22, 2013 by Kenneth Fisher

    Recently I came across a post on http://www.StackOverflow.com that basically asked how to write a generic stored procedure to handle …
    Continue reading

  4. Writing Dynamic SQL (A how to)

    6

    July 1, 2013 by Kenneth Fisher

    A little while back I wrote Best practice recommendations for writing Dynamic SQL where I made a number of suggestions …
    Continue reading

  5. Best practice recommendations for writing Dynamic SQL

    16

    June 12, 2013 by Kenneth Fisher

    Note this is not “Best Practices when USING Dynamic SQL”. These are just good habits I’ve come up with over …
    Continue reading

  6. Backup a password, change it, then restore it.

    3

    May 30, 2013 by Kenneth Fisher

    A couple of months ago I talked about moving a login from one server to another without the password. The …
    Continue reading

  7. INFORMATION_SCHEMA the un-sung system views

    13

    April 29, 2013 by Kenneth Fisher

    I spend a reasonable amount of time looking through various forums, answering some questions and reading the answers to others. …
    Continue reading

  8. How do I use a variable in an IN clause?

    15

    April 8, 2013 by Kenneth Fisher

    I see this question in one form or another a lot. I’ve seen this or something like it probably half …
    Continue reading

  9. DROP and CREATE vs ALTER

    25

    February 25, 2013 by Kenneth Fisher

    When writing a script to change a piece of code, say a stored procedure or view, there are 3 basic …
    Continue reading

  10. Generating multiple SQL statements from a query

    2

    December 17, 2012 by Kenneth Fisher

    Dynamic SQL is one of my favorite tools in the DBA toolbox. I’m big on automation and dynamic SQL can …
    Continue reading

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

Join 3,746 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013