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
What is data adapter in ado.net with example?
What is the meaning of object pooling?
What is namespace in ado.net?
What is datasource in ado.net?
Define partial class?
Can we do database operations without using any of the ado.net objects?
What is connection string?
What is disconnected scenario in entity framework?
What is dbcontext and dbset in entity framework?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
Which property is used to check whether a DataReader is closed or opened?
What is ado.net in vb net?
What is ado and dao?
What is the difference between ADO and ADO.Net?
How to find the given query is optimised one or not?