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 the various tools available for performance tuning?
What is the difference between the application object and session object?
What is a unique key constraint?
Explain an automatic checkpoint
What is SubQuery in SQL Server 2008
What does select 1 mean?
What are the types of table?
What is data mart? : sql server analysis services, ssas
How to locate and take substrings with charindex() and substring() functions?
Explain identity in sql server?
What are policy management terms?
Is sql server free?
How to create percentile function?
What are the advantages of log shipping?
What is use of dbcc commands?