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 / ramakrishna

DECLARE @RC int
DECLARE @ER int

INSERT INTO T(Cal1,Col2..)
SELECT ColX,ColY..
FROM T1

SELECT @RC = @@ROWCOUNT
SELECT @ER = @@ERROR

Is This Answer Correct ?    3 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What different steps will a sql server developer take to secure sql server?

1039


How to create a user name in a database?

1103


Explain syntax for dropping triggers?

969


What are different types of raid levels?

1238


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1960


List down some advantages of sql stored procedure?

1016


Define Wed Edition in SQL Azure?

102


What is deploy, process and build? : sql server analysis services, ssas

1156


Explain some stored procedure creating best practices or guidelines?

1005


How to enter unicode character string literals in ms sql server?

1124


How to maintain a fill factor in existing indexes?

1057


What are the restraints imposed on the table design by a merge replication?

1094


How to retrieve field values using mssql_result()?

1419


What are the advantages dts has over bcp?

1051


What is an identity?

1079