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 to create a simple stored procedure in ms sql server?
Difference between Inner vs outer joins?
What is data compression?
Explain index in sql server?
Explain how you can deploy an SSRS report?
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
What is the language structure to add a record to a table?
How to get the definition of a view out of the sql server?
Do you know how to send email from database?
Explain go command in sql server?
Explain temporary table vs table variable by using cursor alternative?
What are “unrepeatable reads”?
What is sql or structured query language?
What are the types of user defined functions in sql server?
Name three of the features managed by the surface area configuration tool? : sql server security