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 functions can a view be used to performed?
How to copy data from one table to another table?
How to send a ssrs report from ssis?
What do you mean by acid?
What are the types of resultset?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
Detail about the hardware which is supported by SQL server?
Define a cross join?
How to create a simple user defined function in ms sql server?
Explain transaction server distributed transaction?
What is cursor in ms sql server?
What are dml (data manipulation language) statements in ms sql server?
What is a result set object returned by mssql_query()?
What is user-defined inline table-valued function?
What is SQL Azure Fabric?