GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 344 of 436    Print  
how to find exceptions in database

  
Total Answers and Comments: 4 Last Update: February 25, 2007     Asked by: ravi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 05, 2006 23:45:57   #1  
raj bardhan        

RE: how to find exceptions in database

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

then give an exception.


 
Is this answer useful? Yes | No
November 16, 2006 05:06:09   #2  
nitin        

RE: how to find exceptions in database

I think we can use

System.Data.Exception.

Let me know if I am wrong!!


 
Is this answer useful? Yes | No
February 23, 2007 00:16:54   #3  
simon        

RE: how to find exceptions in database
I think you can check the @@error in database if @@error>0 then exception happen
 
Is this answer useful? Yes | No
February 25, 2007 00:52:53   #4  
pankajbanga Member Since: February 2007   Contribution: 7    

RE: how to find exceptions in database

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.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape