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 various security methods which IIS Provides apart from .NET ?
What is the function of the ViewState property?
What is the difference between stored procedure vs function?
How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits?
What is clr? Difference between clr & cts?
Is asp.net still used?
How to kill session?
What is web.config and machine.config ?
3 Answers Collabor, NDPL, TCS,
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
write a sample code make use of xmltext writer
Where is cookie used in asp.net?
What is the first name space in .netF/W heirarchy
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)