Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stored proc error handling

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-03-14 : 07:28:02
Michael writes "Let's say a user passed a param. to a proc that is not
expecting one. How do you handle this error before
SQL reports it and exits unconditionally."

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2003-03-14 : 08:00:41
You can use @@ERROR or IF EXISTS depending on the requirement.

Sekar
~~~~
Success is not a destination that you ever reach. Success is the quality of your journey.
Go to Top of Page
   

- Advertisement -