One thought on “My New Article : A Closer Look Inside RAISERROR – SQLServer 2005

  1. Thank you good Article.

    I ‘ve a question.
    we can do this in Sqlserver2000 ?
    BEGIN TRY
    DECLARE @Intval int;
    SET @Intval = 1/0; — Devide by Zero Error
    END TRY
    BEGIN CATCH
    RAISERROR (50009, 11, 1); — 50009 is our pre-defined error that are stroed using sp_addmessage
    END CATCH;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s