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

What is filestream?

1049


What is the meaning of resultset type_scroll_insensitive?

994


When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?

1033


What is star, snowflake and star flake schema? : sql server analysis services, ssas

1230


What is logshipping and its purpose?

1066


Explain relational data?

969


What do you understand by mirroring and mention the advantages of the mirroring?

1117


What is the use of @@spid?

1051


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

1047


Why use cursor in sql server?

1133


Can you please explain the difference between function and stored procedure?

1048


How do I create a partition table in sql server?

1184


What is the maximum size per database for sql server express?

1103


What is an identity?

1079


what are the new features introduced in sql server 2000? : Sql server database administration

980