how to handle sql exceptions?

Answers were Sorted based on User's Feedback



how to handle sql exceptions?..

Answer / gomathi

Sql exception can be handled through try,catch and finally
block.

Is This Answer Correct ?    35 Yes 2 No

how to handle sql exceptions?..

Answer / minhajul islam

using try block we can trap the error as follows

try
{
//Datanase coding
}
catch(SQLException e1)
{
//Here you will get SQL Error message in e1 instance
}

Is This Answer Correct ?    1 Yes 0 No

how to handle sql exceptions?..

Answer / ashish maurya

1)Using TRy,catch,finally block.
2)using @@Error just after DML statements.

Is This Answer Correct ?    0 Yes 0 No

how to handle sql exceptions?..

Answer / prince

not possible

Is This Answer Correct ?    2 Yes 23 No

Post New Answer

More ASP.NET Interview Questions

Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   HCL, Wipro,


How can we create a website?

0 Answers  


What is boxing?

8 Answers   IBM, Misys, Siebel Systems,


what is CTS?

3 Answers   PrimeLine,


If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  






Describe the diffeerence between inline and code behind?

0 Answers  


What is the < machinekey > element and what two ASP.NET technologies is it used for ?

1 Answers  


what is silverlight and what is the purpose of silverlight?

2 Answers   Cognizant, CTS,


Explain About duration in caching technique

0 Answers   BirlaSoft,


What is session tracking & methods?

4 Answers   C Squared Systems,


How many view state can be hold by a aspx page ?

3 Answers   Intellevate,


Why will you usually create an aspnet user account in the database for an asp.net web application?

0 Answers  


Categories