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 2008 Forums
 Transact-SQL (2008)
 return exception depending on the condition

Author  Topic 

Mahavirjadhav
Starting Member

18 Posts

Posted - 2014-12-20 : 02:57:37
Hi,
I want return the exception depending condition. E.g if age of employee is greater than 100 years. In this case instead of inserting record in table I want to return the exception.
Please help me.

Mahavir

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2014-12-20 : 08:38:46
Use raiserror or throw
Go to Top of Page
   

- Advertisement -