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 do you know about ado.net's methods?
What is commandbuilder in ado.net?
What connected data?
What is ado.net objects?
What is ado.net architecture?
What is bubbled event?
What are datareaders?
What are the different ado.net namespaces?
List all the steps in order, to access a database through ado.net?
What is connection pooling and what is the maximum pool size in ado.net connection string?
What are the Data providers in ADO.Net?
How to pass multiple tables in datasets simultaneously?
What does executereader return?
How to generate a single aggregate?
What are the parameters that control most of connection pooling behaviours?