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
What is sql server agent and what are the two modes of authentication in sql server?
What is a synonym for manipulation?
What have included columns when we talk about sql server indexing?
What are diverse clauses that form a part of sql?
Does index speed up select statements?
what are the new features in SSRS?
Explain what are the events recorded in a transaction log?
What are the events recorded in a transaction log?
How to use “drop” keyword in sql server and give an example?
Different types of keys in SQL?
What is parameterized reports in ssrs ?
What is the new security features added in sql server 2014? : sql server security
What is a performance monitor?
Tell about MOM Tool(Microsoft Operator Manager)?
What do you mean by table and field in sql?