Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 the difference between the debug class and trace class?

0 Answers   Rolta,


What are handlers in c#?

0 Answers  


What is the use of protected in c#?

0 Answers  


What is the difference between Hash Table and Arrays?

12 Answers   IBM,


How?s method overriding different from overloading?

2 Answers   Visual Soft,


What is default parameter in c#?

0 Answers  


How is a strongly-named assembly different from one that isn’t strongly-named?

0 Answers  


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?

0 Answers  


How long does a loop recorder procedure take?

0 Answers  


Explain the difference between access specifier and access modifier in c#?

0 Answers  


What is sqldataadapter in c#?

0 Answers  


If you donot specify an access modifier for a method, what is the default access modifier?

0 Answers  


Categories