Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which architecture does Datasets follow?

1045


How to identify the updated rows in a dataset?

1018


What is ado oledb and odbc?

945


What is connected architecture in ado.net?

1075


describe the dataset object in ado.net.

959


The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx

2037


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

1055


Explain the difference between an ado.net dataset and an ado recordset?

1061


Explain how to call the sql commands asynchronously in ado.net version 2.0?

933


Explain why edit is not possible in repeater?

1047


Which database is the ado.net sql connection object designed for?

1054


What is the difference between Data adaptor and Data set?

1047


What is difference between Dataview and Datatable?

1076


How to perform sorting on a table in ADO.NET?

1033


What are the advantages of ado.net?

915