How can you get @@error and @@rowcount at the same time?
Answer Posted / yjreddy
select @@ROWCOUNT
it will give the no of rows affected by last sql statement
select @@ERROR
it will display the error number for last sql statement
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
how can you attach more than 20 ldf files in sql server
What is filestream?
When is the use of update_statistics command?
Find first and last day of current month in sql server
How can we migrate from SQL server to SQL Azure?
What is collation?
What are trace files?
How many types of dimensions are there and what are they? : sql server analysis services, ssas
List out a number of the wants to setup a SQL Server failover cluster?
How to create a dml trigger using create trigger statements?
do views contain data ?
What is 3nf normalization?
How to apply cascading referential integrity in place of triggers?
What is the difference between a "where" clause and a "having" clause?
When a primary key constraint is included in a table, what other constraints does this imply?