-- Try/catch syntax
BEGIN TRY
SELECT 2/0
END TRY
BEGIN CATCH
SELECT Utility.dbo.fnGetErrorTryCatch ()
END CATCH
Joe's Knowledge Base - a collection of various tips-n-tricks for SQL Server. Note: best effort to site sources where applicable, otherwise curated from BOL/MSDN or self-created.
No comments:
Post a Comment