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

Answer Posted / gunasekaran k.j

SELECT @@Rowcount as rwCount, @@Error as Er

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we write ddl in trigger?

650


How to use subqueries with the exists operators in ms sql server?

798


What is cursor in ms sql server?

767


What is collation sensitivity? Explain different types.

721


How to scale out a federation by Sql statement?

110






Explain transaction server implicit?

689


Do you know nested transaction?

682


You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date

820


What is filtered index?

821


What are the different authentication modes in sql server?

804


What is difference between standardization and normalization?

735


What area unit the various kinds of info compression introduced in sql server 2008?

758


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

722


explain different levels of normalization? : Sql server database administration

700


What the difference between UNION and UNIONALL?

757