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 event fired during, when datagrid click?
What is server transfer?
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.
What is different in .net 1.1 and .net 2.0?
Is oauth for authentication or authorization?
what is command line compiler.what are the steps and how it is related to debugging.
What are the security types in ASP/ASP.NET? Different Authentication modes?
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.
Apart from IDE what are the enhancements in asp.net 2.0?
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?