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
What is executequery?
Explain the differences between oledb sql server, oledbdotnet provider?
What is the difference between OLEDB Provider and SqlClient?
Explain why canot we use multiple inheritance and garbage collector paralelly in .net?
How to find the given query is optimised one or not?
What is connection in ado.net?
How is it possible to get 2 tables of data at a time by using data reader?
What are three methods for displaying data in a syncfusion datagrid
Explain the advantages and disadvantages of using datalist?
What is the difference between DataReader and DataSet in ADO.NET?
What is fill method in ado.net?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What is the full form of ado.net?
What is data access pattern?
Explain the difference between sqlcommand object and command behavior object?