Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping Errors
Message
 
 
To
26/05/2005 21:20:36
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01017984
Message ID:
01017999
Views:
32
This message has been marked as the solution to the initial question of the thread.
Martin,

SQL Server has limited error handling capabilites. See @@ERROR in BOL. Although incoming SQL Server 2005 has TRY...CATCH structured error handling.

>
>Just wanted to know how I can trap errors in a stored procedure? Like if a value was entered more than once on a primary key field, how do I trap the error? To inform the application of the error I would just return an error number.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform