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 Data view?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
Why is ADO.NET serialization slower than ADO ?
How do I delete a row from a DataTable?
What are the ado.net components?
What is sqldatareader?
Is ado.net dead?
What is connection in ado.net?
Explain the difference between ado and ado.net?
What is sqlconnection and sqlcommand?
What is the difference between linq and ado.net?
What are all the commands used with Data Adapter?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
What is the full form of ado?
What is the difference between ado.net and entity framework?