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 the difference between statement and preparedstatement interface?
Does ado.net use odbc?
What is the difference between linq and ado.net?
differences between ADO and ADO.NET
What does executequery return?
Which provider is used to connect ms access, oracle, etc…?
Explain how do you connect to sql server database without using sqlclient?
What is a string variable?
What are the steps you will take to improve performance? Will you use dataset or datareader?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
How to load multiple tables into a dataset?
differance between ADO vs ADO.Net?
What is the use of Dataview?
How many major types of connection objects in ADO.NET?
Give few examples of datareader that is used in different dataproviders.