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

What is the size of transaction log file?

569


Tell me what do you understand by a view? What does the with check option clause for a view do?

718


explain different types of constraints? : Sql server database administration

605


What is the Control Flow in SSIS

650


How to make a column nullable?

680






what's the difference between a primary key and a unique key? : Sql server database administration

593


What is the difference between a primary key and a unique key? Are they the same?

654


What are the source of constraints?

582


What happens to a statement batch if there is a compilation error?

596


explain the storage models of olap? : Sql server database administration

596


How you can get a list of all the table constraints in a database?

593


What is inner join? Explain with an example?

772


Which are the important points to note when multilanguage data is stored in a table?

592


How many null values we can have in a unique key field in sql server?

639


What is acid mean in sql server?

657