How to find exceptions in database

Showing Answers 1 - 10 of 10 Answers

raj bardhan

  • Jun 5th, 2006
 

if program successfully complie . but program is not run or execute.

 then give an exception.

  Was this answer useful?  Yes

nitin

  • Nov 16th, 2006
 

I think ,we can use

System.Data.Exception.

Let me know if I am wrong!!

  Was this answer useful?  Yes

simon

  • Feb 23rd, 2007
 

I  think you can check  the @@error in database  if @@error>0 then exception happen

  Was this answer useful?  Yes

pankajbanga

  • Feb 25th, 2007
 

framework is endowed with provider specific exception class that u can use to handle exception from database. for instance to handle exceptions from SQL Server u can use System.Data.SqlClient.SqlException class. Similarly, for OLE DB data source use System.Data.OleDb.OleDbException class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions