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 is the difference between the 2 operating modes of database mirroring?

0 Answers  


Define clusters?

0 Answers  


Normalization and denormalization

3 Answers   Wipro,


Explain the benefits of user-defined functions?

0 Answers  


How to set a database state to offline in ms sql server?

0 Answers  


How many types of the database links?

0 Answers   MCN Solutions,


Which is better in performance - CONSTRAINT or TRIGGER over a column which restricts say an input of particular value in a column of a table?

3 Answers   Accenture,


Define the one-to-one relationship while designing tables.

0 Answers  


How to find 6th highest salary from Employee table ?

10 Answers  


What is a transaction and what are ACID properties?

14 Answers   Config Systems, IBM, TCS, Virtusa,


Can you force a query to use a specific index?

0 Answers  


What happens on checkpoint?

0 Answers  


Categories