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
Describe the command object and its method.
What is an ado connection?
What is bubbled event?
What are the important features of ado.net 2.0?
What is microsoft ado.net?
Explain the difference between sqlcommand object and command behavior object?
What is oledb driver?
What is the maximum pool size in ado.net connection string?
What is oledb connection?
What is ado.net full form?
What is difference in record set and dataset?
What is sqldatasource?
Why is stored procedure used in ado.net?
Compare Data Reader & Dataset in ado.net?
What is ado in agriculture?