How to Handle the exceptions in Sqlsrver2000

Answer Posted / bolisettyvaas

In SQL Server 2000 there is no powerful error handling like
.Net. But you can use one global variable @@ERROR. So after
every dml statement, you can retrieve this variable value
and verify if the value is not equal to 0 then it means some
error occured. otherwise no errors in the last executed
statement.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is datagrid with an example?

587


What is typed dataset ?

678


describe the dataset object in ado.net.

522


What is a datagridview?

518


What is the role of the dataset object in ado.net?

571






Explain the difference between an ado.net dataset and an ado recordset?

535


Which method in OLEDBAdapter is used to populate dataset with records?

561


What is the difference between sqlcommand and sqldataadapter?

504


What do you know about ADO.NET's objects and methods?

522


What are all the different methods under sqlcommand?

522


What is a column variable?

505


What are the benefits of using ado.net?

518


What is the use of data grid?

492


Describe briefly an ADO.NET Dataset ?

553


How would you connect to database using .NET?

574