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 do you find the error, how can you know the number of
rows effected by last SQL statement?

Answers were Sorted based on User's Feedback



How do you find the error, how can you know the number of rows effected by last SQL statement?..

Answer / chandra rekha

select @@error'Error'
select @@rowcount'Rows'

Is This Answer Correct ?    4 Yes 0 No

How do you find the error, how can you know the number of rows effected by last SQL statement?..

Answer / laxman

select @er=@@error,@rc=@@rowcount

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More SQL Server Interview Questions

What are the approximate numeric data types?

0 Answers  


Can we call SP inside a query?

5 Answers   CA, CarrizalSoft Technologies, Wipro,


How to a Query to copy data from on table to another table.

6 Answers   Cap Gemini,


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

0 Answers  


how to give input dynamically to a insert statement in sqlserver

3 Answers   HCL,


What is the order by used for?

0 Answers  


is there a column to which a default can't be bound? : Sql server database administration

0 Answers  


how do we insert 100 records at a time in a table without using for loop in database

1 Answers  


What are the dis_advantages of stored procedures, triggers, indexes?

0 Answers  


How many jobs will create for Mirroring, Log Shipping, and Transactional Replication?

4 Answers   IBM,


What does set rowcount do?

0 Answers  


Can two tables share the same primary key?

0 Answers  


Categories