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

How can we set class to be inherited, but prevent the method from being over-ridden?

985


How is method overriding different from overloading?

1040


What is private protected in c#?

887


What is the diff between System.String and System.Text.StringBuilder classes?

1004


What is instantiating a class?

926


Which .gang of four. Design pattern is shown below?

914


What is an expression in c#?

908


How to prevent the error while updating ui control from another thread?

962


What is difference between .net and c#?

931


Illustrate serialization?

954


Define interface class in c#?

899


How do I create a .exe file?

1002


What is asax file in c#?

947


What is serialization in dot net?

946


What are the advantages of using assemble language programming?

934