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...

How can you get @@error and @@rowcount at the same time?

Answer Posted / yjreddy

select @@ROWCOUNT
it will give the no of rows affected by last sql statement
select @@ERROR
it will display the error number for last sql statement

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use subqueries in the from clause in ms sql server?

1151


What is normalization and its types?

1017


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

1006


How to provide default values to function parameters?

1124


What you can do to delete a table without the delete trigger firing?

962


Explain the working of sql privileges?

1078


Does sql server use t sql?

1007


What happens if null values are involved in string operations?

974


Is there any difference between the primary key and unique key?

993


What is 2nf in normalization?

978


How to create a simple table to test triggers in ms sql server?

967


How to execute a sql statement using odbc_exec()?

1126


Write a SQL queries on Self Join and Inner Join.

1034


Can you always create a cache of a report?

172


do you know how to configure db2 side of the application? : Sql server database administration

1033