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 methods are fired during the page load?

7 Answers   InSync Tech-Fin, Siebel Systems, Visual Soft,


when using personlization, how do you access over setting at runtime?

1 Answers  


Demonstrate Render and PreRender?

0 Answers   QuestPond,


Can a user browsing my Web site read my Web.config or Global.asax files ?

1 Answers  


What’s the difference between Response.Write() andResponse.Output.Write()?

1 Answers  


What is work flow gen? how can it will work with .Net?

0 Answers   TCS,


What is session and cookies in asp.net?

0 Answers  


What is application variable?

0 Answers  


if you disable view state of a textbox will it maintain data during postbacks.if yes reason

9 Answers   FactorH, Jindal, Oxi Infotech,


What is the name of the base class that all web forms will be inherited?

7 Answers  


Is asp.net 64-bit enabled? How?

0 Answers  


What do you mean by authentication and authorization

3 Answers  


Categories