how to handle sql exceptions?
Answers were Sorted based on User's Feedback
Answer / gomathi
Sql exception can be handled through try,catch and finally
block.
Is This Answer Correct ? | 35 Yes | 2 No |
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 |
Answer / ashish maurya
1)Using TRy,catch,finally block.
2)using @@Error just after DML statements.
Is This Answer Correct ? | 0 Yes | 0 No |
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
How can we create a website?
What is boxing?
8 Answers IBM, Misys, Siebel Systems,
what is CTS?
If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.
Describe the diffeerence between inline and code behind?
What is the < machinekey > element and what two ASP.NET technologies is it used for ?
what is silverlight and what is the purpose of silverlight?
Explain About duration in caching technique
What is session tracking & methods?
How many view state can be hold by a aspx page ?
Why will you usually create an aspnet user account in the database for an asp.net web application?