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

Is and as keyword in c# net?

531


What is the use of iqueryable in c#?

482


Explain more on CLR

754


Explain the accessibility modifier protected internal?

466


What is type class in c#?

499






What are functions in c#?

506


what are some characteristics of an array?

525


What is the meaning of int parse in c#?

507


What does return do in for loop?

486


What is the use of partial methods?

580


What is a copy constructor in c#?

500


What is deferred execution in c#?

516


Explain how is the dll hell problem solved in .net?

467


What is difference between ienumerable and list?

518


How to use the sreamReader class to read form a text file?

554