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 ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of ado.net?

916


What is serialization and de-serialization in .net? How can we serialize the dataset object?

973


What is ado.net and its architecture?

1181


What is ado.net objects?

973


How to find the given query is optimised one or not?

981


Can we connect two dataadapters to same data source using single connection at same time?

994


What are basic methods of dataadapter?

979


What Is Difference Between Ado And Ado.net?

1039


Give few examples of datareader that is used in different dataproviders.

982


What is a datagridview?

1053


Why do we use sqldataadapter?

955


What are the classes in System.Data.Common Namespace?

1156


Explain the role of data provider in ado.net?

994


Which method in OLEDBAdapter is used to populate dataset with records?

1028


What is the difference between Data adaptor and Data set?

1050