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

Answer Posted / chandra rekha

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

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain logical operators in sql server?

741


What is the use of stored procedure?

662


Which table keeps the locking information?

695


What are the encryption mechanisms in sql server?

734


What are the features of Embedded SQL

857






Explain system functions or built-in functions? What are different types of system functions?

725


What are built in functions?

758


What is meant by indexing files?

778


Tell me about the approaches which you used to counter the DI problems.

992


What is the cartesian product of the table?

725


What are the components of sql server service broker?

683


Define a cross join?

760


What are the purposes of floor and sign functions?

731


Write a query to include a constraint, to check whether the employee salary is greater than 5000?

1347


what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration

658