How can you get @@error and @@rowcount at the same time?
Answer Posted / raji
@@error - displays the error number of last T-Sql statement
@@rowcount - displays the total row count of last T-Sql
statement
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to handle error or exception in sql?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?
How to replace the Query Result 'Null Value' with a text ?
What is a transact-sql statement?
Can a cursor be updated? If yes, how you can protect which columns are updated?
What is scrollable cursor?
Explain the different types of joins?
Distinguish between nested subquery and correlated subquery?
Find columns used in stored procedure?
OPTIMIZATION OF SP,CURSOR,TRIGGERS
How to replace null values in expressions using isnull()?
What are the types of dml?
What is the difference between truncate and delete commands?
How adventureworkslt tables are related?
How can you know if the row fetched from cursor is still valid in underlying table?