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
Which is better entity framework or ado.net?
How can we load multiple tables in a dataset?
What are the parameters that control most of connection pooling behaviors?
Explain the role of data provider in ado.net?
What is ado data control?
What are the main differences between classic ado and ado.net?
What is Data view?
What is the use of sqldatareader class?
What is difference between Dataview and Datatable?
Give an example that shows how to execute a stored procedure in ado.net?
What is difference in record set and dataset?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
Can we do database operations without using any of the ado.net objects?
If we are not returning any records from the database, which method is to be used?
Is it possible to load multiple tables in a Dataset?