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 |
How can u handle Un Managed Code Exceptions in ASP.Net?
What is WebService ?
8 Answers Tanla Solutions, Yahoo,
Difference between viewstate, cache, session
what is the difference between response.write() and response.output.write()?
Which template must you provide, in order to display data in a Repeater control?
What are the cookies types in asp.net?
Which control would you use if you needed to make sure the values in two different controls matched?
What is the use of session in web application?
One application have three forms for registration .submit button is at third form.after filling three forms only u have to click submit button.After clicking the submit button all the values in first,second& third form saved on sql server.how to handle this situation .
Caching techniques in .NET?
What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
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)