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 c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

0 Answers  


Is boxing an implicit conversion?

0 Answers  


Is there a way of specifying which block or loop to break out of when working with nested loops?

0 Answers  


What is difference between gridview and form view?

0 Answers  


Is std :: string null terminated?

0 Answers  


what is the difference between the debug class and trace class?

0 Answers   Rolta,


How to Show Message box in Metro Style App?

0 Answers   PUCIT,


What do you mean by saying a "class is a reference type"?

0 Answers  


Differentiate between method overriding from method overloading with its functionality?

0 Answers   Siebel,


Does c# have functions?

0 Answers  


What are bitwise logical operators?

0 Answers  


Why do we need interfaces in c#?

0 Answers  


Categories