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
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
How do you update a dataset in ado.net?
Explain ado.net features? Benefits? Drawbacks?
What are the different layers of ado.net?
Explain ado.net features?
How would you connect to a database by using .NET?
What does ole stand for in excel?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
What is microsoft ole db provider for sql server?
What are the advantages of using datalist?
How can we save all data from dataset?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What are the major difference between classic ADO and ADO.NET?
What is the default Timeout for SqlCommand.CommandTimeout property?
What is ado or jdbc?