How to Handle the exceptions in Sqlsrver2000

Answers were Sorted based on User's Feedback



How to Handle the exceptions in Sqlsrver2000..

Answer / deepesh jain

@@Error

Is This Answer Correct ?    7 Yes 1 No

How to Handle the exceptions in Sqlsrver2000..

Answer / sisira

you can handle
RAISEERROR

Is This Answer Correct ?    4 Yes 1 No

How to Handle the exceptions in Sqlsrver2000..

Answer / 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

More ADO.NET Interview Questions

oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?

0 Answers   Infosys, Wipro,


Which ado.net object is very fast in getting data from the database?

0 Answers  


What is ole in excel?

0 Answers  


How can we save all data from dataset?

0 Answers  


When multiple users attempt to modify data at the same time Ex user 1 is updating record at same time user2 deleted record sucessfully.now user1 has press update button . how to handle concurrency

4 Answers   Digital Group,






what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?

3 Answers  


How we can provide data to ado.net?

0 Answers  


Call a stored procedure from ado.net and pass parameter to it ?

7 Answers   Keane India Ltd, TCS,


How you will set the datarelation between two columns?

3 Answers  


Being fresher How would i answer to the question that what is your salary exception?

4 Answers  


What are the methods of XML dataset object?

0 Answers  


What is the namespace in which .NET has the data functionality classes?

5 Answers   eMantras,


Categories