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

What does executenonquery () method return?

929


Do you use stored procedure in ado.net?

1022


What are the steps you will take to improve performance?

892


How can you add or remove rows from the datatable object of dataset?

1021


What is difference between sqldatareader and sqldataadapter?

931


What is shadow copy?

979


What is the default timeout specified for "sqlcommand.commandtimeout" property?

1043


What are the advantages using ado.net?

1031


What is ado.net objects?

960


What is Data Provider?

1045


What connected data?

951


Which object of ado contains datarow datacolumn collection?

962


What is the use of data grid?

951


What are the difference between readonly vs. Const?

1005


What two types of data providers does ADO.NET supply? What determines which one you should use?

987