How can you get @@error and @@rowcount at the same time?

Answer Posted / binoo tiku

@@error variable shows the error number of the last
T-SQL error

@@rowcount variable gives the number of rows affected by
the most recent SQL statements.

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a primary key?

695


How to execute a sql statement using mssql_query()?

714


what are the three command line utilities and what are their primary functions?

119


What is merge?

743


What is normalization? Explain different forms of normalization?

749






How to transfer data from a cursor to variables with a "fetch" statement?

767


Why main is user defined function?

750


Does a sql server 2005 select statement require a from?

776


How to run sql server 2005 books online on your local system?

713


what is a transaction? : Sql server database administration

646


What is difference between drop truncate and delete?

733


What is the beast way to write CTE in SQL Server ?

761


Explain sql delete command?

792


Why do we need different type of parameter?

748


What is the difference between primary key and unique constraints?

669