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 difference between the debug class and trace class?
What are handlers in c#?
What is the use of protected in c#?
What is the difference between Hash Table and Arrays?
How?s method overriding different from overloading?
What is default parameter in c#?
How is a strongly-named assembly different from one that isn’t strongly-named?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
How long does a loop recorder procedure take?
Explain the difference between access specifier and access modifier in c#?
What is sqldataadapter in c#?
If you donot specify an access modifier for a method, what is the default access modifier?
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)