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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can int be null in c#?

931


What is the difference between properties and indexer in c#?

971


State two different types of access modifiers.

1063


Define an abstract class?

964


What is the difference between arraylist and list in c#?

970


What does return do in unity?

1007


What is difference between Enum and Struct?

1041


What is the default value of boolean variable?

1021


What is string concatenation?

1051


Explain the functionalities of satellite assembly?

1018


What is dbml file in c#?

1043


Is system a class in c#?

974


What is static class in C#?

1065


Can You Prevent Your Class From Being Inherited By Another Class?

986


What is console application with example?

981