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 / sachin rakshe

If @@Rowcount is checked after Error checking statement then
it will have 0 as the value of @@Recordcount as it would
have been reset. And if @@Recordcount is checked before the
error-checking statement then @@Error would get reset. To
get @@error and @@rowcount at the same time do both in same
statement and store them in local variable. SELECT @RC =
@@ROWCOUNT, @ER = @@ERROR

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

tell me the disaster recovery plan

2508


Can a synonym name of a table be used instead of a table name in a select statement?

1022


What is the fillfactor concept in indexes?

972


Why main is user defined function?

1003


What are distributed partitioned views?

1059


What is ms sql server triggers?

999


What is the native system stored procedure to execute a command against all databases?

1013


what is nonclustered index

944


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

1053


Does the unique constraint create an index?

1047


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

942


How to change the data type of an existing column with "alter table" statements in ms sql server?

975


What is 3nf normalization form?

1102


How can you start sql server in different modes?

961


what is the information that can be stored inside a bit column? : Sql server database administration

950