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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
How would you connect to database using .NET?
What is ole db query?
What is dataset and datatable in ado.net?
How can we load multiple tables in to dataset?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
Does ado.net use odbc?
What is microsoft ole db provider for sql server?
What are the different ado.net namespaces are available in .net?
What are the rules to implement connection pooling?
What is the maximum pool size in ado.net connection string?
What are the different execute methods of Ado.Net?
What is sqldatareader in ado.net?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
What is the difference between ado.net and entity framework?
What is data control techniques?