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 a 307 redirect?
how we deploy the asp.net 2.0 application
Can you store dataset in viewstate?
To make Cache item dependent on a file,directory or other cached item ,you should create an instance of which clause?
What is the maximum amount of memory any single process on windows can address?
What permissions do asp.net applications posses by default?
What is deff. saop and disco?
How long does an http session last?
Asp.net - How to find last error which occurred?
Is There any Third party tools are using in .Net Technologies? Can u Explain?
How to handle error while project running on live
What are typed datasets?
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)