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 is database replication? : Sql server database administration
How to search for a string in all stored procedure in sql server?
We need to perform what steps in the following order to work with a cursor?
hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.
How to connect php with different port numbers?
What is a bit datatype?
Can a rule be bound to any column of any data type?
What are distinctive joins find as a part of sql?
How do I start sql server 2016?
What is the difference between online clustering and Offline clustering?
Which data type columns are the best candidates for full-text indexing?
What are the system database in sql server 2008?
What is a join in sql? What are the types of joins?
Differentiate between delete and truncate.
let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration