Tag Archives: error handling
-
A quick and dirty scan of a list of instances using a dynamic linked server.
5November 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 -
How do I test if a linked server works using T-SQL?
4October 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 -
Error handling protip: @@Error resets after the next command
Leave a commentMarch 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 -
Custom error messages
1July 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