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

What event fired during, when datagrid click?

1 Answers  


What is server transfer?

0 Answers  


We have 2 sites in which one site allows the user with out asking credentials and second one ask for credentials through a log page. What might be the configurations settings for both sites? We can use IIS and web.config files together.

1 Answers   ADITI,


What is different in .net 1.1 and .net 2.0?

0 Answers  


Is oauth for authentication or authorization?

0 Answers  


what is command line compiler.what are the steps and how it is related to debugging.

0 Answers  


What are the security types in ASP/ASP.NET? Different Authentication modes?

0 Answers  


What are the major differences between asp.net1.1 and asp.net 2.0?

8 Answers   CTS, Deloitte, Mphasis, Vison,


How we can kill our Session in web farm where there is no any sticky server .And user can not Logout bcoz of that.

3 Answers  


Apart from IDE what are the enhancements in asp.net 2.0?

0 Answers   Microsoft,


Describe the Server Control Events of ASP.NET?

0 Answers   SwanSoft Technologies,


Can we set which type of comparison we want to perform by the CompareValidator control?

0 Answers   MindCracker,


Categories