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 / guest

@@rowcount gives the number of rows given as an result of
previous query ran.

Create procedure get_emp_count ( @emp_id int)
As
Select * from emp where emp_id =@emp_id

If @@rowcount = 0
Begin
Select 'no rows with emp_id= '
Select @emp_id
End

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data adapter in ado.net with example?

1046


What is the meaning of object pooling?

1238


What is namespace in ado.net?

1022


What is datasource in ado.net?

1074


Define partial class?

984


Can we do database operations without using any of the ado.net objects?

993


What is connection string?

1009


What is disconnected scenario in entity framework?

1119


What is dbcontext and dbset in entity framework?

938


What is method to get XML and schema from Dataset? getXML() and get Schema ()

976


Which property is used to check whether a DataReader is closed or opened?

1052


What is ado.net in vb net?

929


What is ado and dao?

962


What is the difference between ADO and ADO.Net?

1086


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

979