Tag Archives: microsoft sql server

  1. How do I tell the stored procedure name from inside the stored procedure?

    1

    April 24, 2013 by Kenneth Fisher

    I’ve occasionally had the problem of trying to put “smart” logging messages into a process. You know the ones, you’re …
    Continue reading

  2. Calculating the length of a string (Len vs DataLength)

    3

    April 14, 2013 by Kenneth Fisher

    This one is basic but still something that can catch you unawares if you aren’t careful. Most DBAs and developers …
    Continue reading

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

    16

    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

  4. UNPIVOT a table using CROSS APPLY

    23

    April 1, 2013 by Kenneth Fisher

    I generally spend part of each day looking through http://www.stackoverflow.com, http://dba.stackexchange.com or http://www.sqlservercentral.com. I read through questions that have already …
    Continue reading

  5. How do I move a SQL login from one server to another without the password?

    18

    March 25, 2013 by Kenneth Fisher

    This is an uncommon task but one that does turn up every once in awhile. A SQL login has to …
    Continue reading

  6. Using Templates

    3

    March 18, 2013 by Kenneth Fisher

    Templates are one of those really handy tools that most DBAs I know of have either never heard of or …
    Continue reading

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

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

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

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

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