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
How to creating a SqlCommand Object?
What is datatable in ado.net?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
Which architecture does Datasets follow?
What is ado.net and its features?
Explain how to create dynamic gridview?
What is ole2 format?
What is the purpose of using adodb?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What are the namespaces used in ado.net for data access?
Difference between sqlcommand and sqlcommandbuilder?
What are the ado.net connection pooling parameters?
What is ado data control?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
How do I delete a row from a DataTable?