How can you get @@error and @@rowcount at the same time?
Answer Posted / laxman
SELECT @RC = @@ROWCOUNT
SELECT @ER = @@ERROR
if we use above statements then @@error will be reset with
0.
i think right one is
select @er=@@error,@rc=@@rowcount
| Is This Answer Correct ? | 31 Yes | 1 No |
Post New Answer View All Answers
What is ddl and dml commands?
Why use “pivot” in sql server?
What are the requirements on sql server network connections?
Explain raiserror in sql server?
Explain the steps to use transact-sql cursor?
What is data source object?
What is triggers and stored procedures?
Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration
What is meant by indexing?
What are the different ways you can create databases in sql server?
Explain the third normal form(3nf)?
What options are available to audit login activity? : sql server security
How to create an index on a view?
What are the basic functions for master, msdb, model, tempdb databases?
Can a rule be bound to any column of any data type?