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 does mean c#?

0 Answers  


What is tryparse?

0 Answers  


Which program construct must return a value?

0 Answers   3i Infotech,


write the Syntax for Function or Method Overriding?

5 Answers   HCL,


What are the types of access modifiers?

0 Answers  






Can you have more than one namespace in c#?

0 Answers  


What is anonymous method in c#?

0 Answers  


Is list a collection c#?

0 Answers  


STATIC METHOD CAN BE OVERLOADING AND OVERIDNG? IS POSSIBLE IN iN c# .NET AND WHAT IS THE REASON??

3 Answers   IBM, TCS,


What is dto c#?

0 Answers  


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

0 Answers   Excel,


What is c# best for?

0 Answers  


Categories