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 are the main differences between asp and asp.net?
Whats the difference between abstract factory pattern and factory pattern?
What is cookieless session id explain in brief?
what is Satellite Assembly?
Explain the advantages of passport authentication.
Name the control which can be used to reserve the space on web page for storing localized data.
What is the postback property in asp.net?
what is view state?
How can I configure asp.net applications that are running on a remote machine?
Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice
What is web application virtual directory ?
Describe the difference between inline and code behind - which is best in?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)