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

How can I retrieve two tables of data at a time by using data reader?

1082


What is difference between connected and disconnected architecture in ado.net?

1202


What is ado code?

996


Describe the disconnected architecture of ADO.NET’s data access model.

1108


What is ado rdo dao in visual basic?

1203


What is connected architecture in ado.net?

1179


Which namespaces are used for data access?

1264


What are the namespaces used in ado.net for data access?

1026


Why do we need ado.net?

1023


What is connection pooling and what is the maximum pool size in ado.net connection string?

986


What are the various methods provided by the DataSet object to generate XML?

1052


Explain executenonquery?

1219


What is the use of connection object in ado.net?

1091


What is the difference in an abstract class and an interface?

1064


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

1034