What is @@rowcount and with small code snippet explain the
usage?
Answer Posted / jagan
@@ROWCOUNT:
Returns the number of rows affected by the last statement.
ex:
UPDATE authors SET au_lname = 'Jones'
WHERE au_id = '999-888-7777'
IF @@ROWCOUNT = 0
print 'Warning: No rows were updated'
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What Is Difference Between Ado And Ado.net?
What is the default provider in ado.net?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
What providers does Ado.net uses?
What is a datareader object?
What are the methods of XML dataset object?
What is ado.net and its architecture?
What is ado.net in vb net?
What are different layers of ADO.Net?
Define data adapter?
What are the difference between readonly vs. Const?
What is ado and rdo?
What are the uses of Stored Procedure?
What are the ado.net components?
What is namespace in ado.net?