Tag Archives: error handling

  1. #PowershellBasics: Warnings and how to hide them.


    December 8, 2022 by Kenneth Fisher

    One of my favorite parts of having a new job is that I learn a ton. (No really, my brain …
    Continue reading

  2. A quick and dirty scan of a list of instances using a dynamic linked server.


    November 12, 2020 by Kenneth Fisher

    Note: This is not exactly a dyanmic linked server. It just gets dropped and recreated in a loop. I recently …
    Continue reading

  3. How do I test if a linked server works using T-SQL?


    October 27, 2020 by Kenneth Fisher

    I get that linked servers are almost as despised as the dreaded cursor or (lord save us) NOLOCK, but they …
    Continue reading

  4. Error handling protip: @@Error resets after the next command

    Leave a comment

    March 30, 2020 by Kenneth Fisher

    The system variable @@ERROR is a quick and easy way to retrieve the error number from the last statement run …
    Continue reading

  5. Custom error messages


    July 24, 2019 by Kenneth Fisher

    I’m sure lots of you have used the function RAISERROR to handle an error caused by your code. The problem …
    Continue reading

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

Join 3,755 other subscribers

Follow me on Twitter

ToadWorld Pro of the Month November 2013