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 |
Is list passed by reference c#?
How do you mark a method obsolete?
What is the use of multicast delegate while methods of multicast delegate do not execute in a order?
What are constants in c#?
What is scaffolding in c#?
How is the memory managed in C#.
Explain the functionalities of satellite assembly?
Why do we Need of static class in c#?
What is poco c#?
in object oriented programming, how would you describe encapsulation?
Explain hash table in c# ?
What is the main purpose of delegates 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)