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
List some major differences between triggers and stored procedures?
What is the contrast amongst drop and truncate?
Explain important index characteristics?
What are the properties of the relational tables?
What is user defined stored procedures?
List the different types of joins?
How would you choose between a clustered and a non-clustered index?
What are the new features of sql server 2012 reporting service?
How to remove duplicate rows from table?
what are the different types of SSRS reports?
Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?
What is a unique index?
What are rows and columns?
When to use Inner join & when to use subquery?
What are distributed partitioned views?