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 set a database state to offline in ms sql server?
What is self join in sql server joins?
Explain the rules for designing files and file groups in sql server?
What is primary key index?
What are the new features in sql server 2016?
What is temporary stored procedure?
What are the grouping functions?
how many bits ip address consist of? : Sql server database administration
wat wil hapn if we give the both read and deny read permission to user?
What is an expression in ms sql server?
What is sql server agent and what are the two modes of authentication in sql server?
How to achieve Paging of records in SQL SERVER?
What is resource governor in sql server?
What is an inner join?
What is tablesample?