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
Give few examples of datareader that is used in different dataproviders.
What is difference in record set and dataset?
What are the difference between readonly vs. Const?
What are the ado.net objects?
What is openrowset?
What is dataset object? Explain the various objects in dataset.
How to identify the controls which can be used for binding data?
Explain the difference between an ado.net dataset and an ado recordset?
How can we perform transactions in .net?
What are the advantages of ado.net?
What is the meaning of object pooling?
Do you use stored procedure in ado.net?
Command objects uses, purposes and their methods.
What are the different row versions available in table?
What are the data providers in ADO.NET framework?