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 is caching and types of caching ?
What are the session variables?
What is the difference between response.redirect and server.transfer, how to choose one among the other?
how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool
How many types of session state management options available in asp.net?
What is different authentication mechanisms used in ASP.NET?
when will garbage collector run?
Explain file-based dependency and key-based dependency.
In what languages in ASP written?
What is custom tag in Web.Config?
What is aspect-oriented programming?
Where the assembly is stored in asp.net?