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 difference between encapsulation and abstraction in c#?
What are logical operators in c#?
How do I enforce const correctness in c#?
Can a class have multiple constructors c#?
How to transpose rows into columns and columns into rows in a multi-dimensional array?
Is string nullable c#?
Can u create multiple threads of execution ?
1 Answers IBM, ITC Infotech, UHU,
In .NET which is the smallest unit of execution?
What does char mean in c#?
What is Delegate and what is it used for ?
Is Facebook a desktop application?
Does C# supports multi-dimensional arrays?
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)