how to handle errors in sqlserver
Answer / kiran vaidya
There is a separate class provided by .Net framework to
handle sql exceptions (errors).
try
{
.......
//Sql Operations
.......
}
catch(SqlException e)
{
//You can have all details of your sql exception by
//the object e.
}
| Is This Answer Correct ? | 6 Yes | 0 No |
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
Is boxing an implicit conversion?
Is there a way of specifying which block or loop to break out of when working with nested loops?
What is difference between gridview and form view?
Is std :: string null terminated?
what is the difference between the debug class and trace class?
How to Show Message box in Metro Style App?
What do you mean by saying a "class is a reference type"?
Differentiate between method overriding from method overloading with its functionality?
Does c# have functions?
What are bitwise logical operators?
Why do we need interfaces in c#?
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)