How can you get @@error and @@rowcount at the same time?
Answer Posted / ramakrishna
DECLARE @RC int
DECLARE @ER int
INSERT INTO T(Cal1,Col2..)
SELECT ColX,ColY..
FROM T1
SELECT @RC = @@ROWCOUNT
SELECT @ER = @@ERROR
| Is This Answer Correct ? | 3 Yes | 16 No |
Post New Answer View All Answers
How the authentication mode can be changed?
What is use of except clause? How it differs from not in clause?
What are the default system databases in sql server 2000?
How do I shrink an ldf file?
what is the information that can be stored inside a bit column? : Sql server database administration
When should you use an instead of trigger?
How can you check the level of fragmentation on a table?
How can you control the amount of free space in your index pages?
How to make conditional sum in ssrs?
Is the log file is a part of file group?
Is sql server a database?
Please explain go command in sql server?
What is primary key, unique key, and foreign key?
how do you test proper tcp/ip configuration windows machine? : Sql server database administration
Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?