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 2005 Forums
 Transact-SQL (2005)
 Exception Handling

Author  Topic 

Jomypgeorge
Starting Member

31 Posts

Posted - 2010-10-15 : 02:54:59
Hi,

currently i am working with a C# project with SQLSever 2005 database.
now i am confused on exception handling. I have searched in net and got a few answers like this.
1.just put it in try catch
2.use catch block to pass error number or error message to front end using select error_number()

Let me know how to handle this?

Thanks in advance

dmilam
Posting Yak Master

185 Posts

Posted - 2010-10-15 : 15:08:05
Have you read this?

http://sommarskog.se/error_handling_2005.html
Go to Top of Page
   

- Advertisement -