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 disconnected architecture in ado.net?

942


What are the difference between readonly vs. Const?

936


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

991


What is ado full form?

966


How will you fill the gridview by using datatable object at runtime?

978


Do you use stored procedure in ado.net?

990


How to create dynamic gridview?

975


What is the difference between sqlcommand and sqldataadapter?

943


What is commandbuilder in ado.net?

951


What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

975


Define Execute Scalar?

949


What is disconnected data?

975


How would you connect to database using .NET?

978


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

915


What is Dataset Object?

962