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 |
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?
Demonstrate Render and PreRender?
Can a user browsing my Web site read my Web.config or Global.asax files ?
What’s the difference between Response.Write() andResponse.Output.Write()?
What is work flow gen? how can it will work with .Net?
What is session and cookies in asp.net?
What is application variable?
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?
Is asp.net 64-bit enabled? How?
What do you mean by authentication and authorization