ecxptions

  • how to do exception in sql server 2005

  • take a look in books on line for the try-catch statement;

    if an error is raised, you can put in some logic to do something different that failed in the TRY

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • pradeepmsbi (5/2/2010)


    how to do exception in sql server 2005

    SET ANSI_WARNINGS ON;

    PRINT 1/0;

  • Here's an article just on how to handle errors within TSQL code:

    http://www.simple-talk.com/sql/t-sql-programming/sql-server-error-handling-workbench/[/url]

    ----------------------------------------------------The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood... Theodore RooseveltThe Scary DBAAuthor of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd EditionProduct Evangelist for Red Gate Software

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply