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

How is entity framework different from ado.net?

1001


Which object of ado contains datarow datacolumn collection?

1012


How do you find the count of records in a dataset?

1023


What are the major challenges in accessing data from a database?

1066


What is sqldatasource?

978


If we are not returning any records from the database, which method is to be used?

1370


What is the difference between sqldatareader and sqldataadapter?

1020


What is Data view?

1149


What is aggregate root?

1187


Which provider is used to connect ms access, oracle, etc…?

1056


Explain the difference between ado and ado.net?

997


What we do with the object of ado.net dataset after using it?

1119


What are all the different methods under sqlcommand?

1031


What is the meaning of executenonquery?

1140


What is an ado connection?

1034