Tag Archives: code language

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

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

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

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

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

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

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

  9. IsMSShipped

    3

    January 23, 2013 by Kenneth Fisher

    I just wanted to do a brief highlight of a handy little object property. For those of you who aren’t …
    Continue reading

  10. My view isn’t reflecting changes I’ve made to the underlying tables.

    8

    January 20, 2013 by Kenneth Fisher

    Problem: You’ve added columns to the base table of one of your views, but the view isn’t reflecting the change. …
    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