how to handle errors in sqlserver



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

Post New Answer

More C Sharp Interview Questions

What is super class in c#?

0 Answers  


What is the meaning of int parse in c#?

0 Answers  


What all details the assembly manifest will contain?

0 Answers  


What is field in c#?

0 Answers  


How do you set a class path?

0 Answers  






What is routing in c#?

0 Answers  


Explain About Iunknown interface Queue

0 Answers   DELL,


What?s the difference between <c> and <code> XML documentation tag?

1 Answers  


What is stringbuilder c#?

0 Answers  


What is a shared assembly?

0 Answers   Wipro,


Is cli same as the clr?

0 Answers  


What's the difference between the debug class and trace class? Documentation looks the same.

0 Answers  


Categories