Category Archives: Microsoft SQL Server

  1. The STUFF function

    17

    March 14, 2013 by Kenneth Fisher

    While I was at the 2011 Pass Summit I was given the following piece of code to create a comma …
    Continue reading

  2. What is mssqlsystemresource?

    1

    March 4, 2013 by Kenneth Fisher

    If you are lucky you’ve never seen an error along the lines of: But let’s face it, luck runs out. …
    Continue reading

  3. Script to clean up “Windows” logins no longer in AD

    14

    March 1, 2013 by Kenneth Fisher

    I was scanning http://dba.stackexchange.com and ran across the following question: http://dba.stackexchange.com/questions/31478/sql-server-script-to-delete-accounts-no-longer-in-active-directory Basically the OP wanted to know how to get …
    Continue reading

  4. Insert multiple values sets into a table in one command

    8

    February 28, 2013 by Kenneth Fisher

    The INSERT command has two distinct ways to load data into a table. And Both of these are very handy …
    Continue reading

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

  6. Multiple instances, single query window

    2

    February 18, 2013 by Kenneth Fisher

    Anyone who has been reading my blog for a while should realize that several divisions in my company have been …
    Continue reading

  7. Something to watch out for when using sp_rename on Stored Procedures, Functions and Views

    6

    February 11, 2013 by Kenneth Fisher

    For those who don’t know, the stored procedure sp_rename allows you to change the name of a user-created object. Basically …
    Continue reading

  8. EXECUTE, not required, but advisable.

    1

    February 6, 2013 by Kenneth Fisher

    The other day one of the developers I work with gave me a script similar to this: He was getting …
    Continue reading

  9. Duplicate rows in a table

    19

    February 4, 2013 by Kenneth Fisher

    I recently got the following email: “I just keyed in two rows into a table with all identical column values. …
    Continue reading

  10. Small changes, big effects

    Leave a comment

    January 30, 2013 by Kenneth Fisher

    We got a call last week about an application that was running slowly. The server was showing about 80% CPU …
    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