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
What are magic tables in sql server?
Can a table be moved to different filegroup?
What are the advantages of passing name-value pairs as parameters?
What are four major operators that can be used to combine conditions on a where clause?
Write a program to fetch first 10 records from a file?
what is the maximum size of a row? : Sql server database administration
How do I start sql server?
Tell me extended events in sql server 2008?
How do you drop an index?
How to use “drop” keyword in sql server and give an example?
What security features are available for stored procedure?
Can a rule be bound to any column of any data type?
What is a partition function in sql server?
What is normalization of database?
What is the order by used for?