What are the two virtual tables SQL Server maintains for
triggers?

Answer Posted / sri

The 2 virtual tables are the OLD and the NEW

OLD is invalid in the case of INSERT and NEW is invalid in
the case of DELETE statements

Inside the trigger we can use the OLD and NEW as follows

:OLD.columnname
:NEW.columnname

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization 1nf 2nf 3nf?

628


What is the function of sql server agent windows service?

535


When you use @@error and try-catch?

570


Can select statements be used on views in ms sql server?

580


Explain what is the purpose of sql profiler in sql server?

548






How to create a view on an existing table in ms sql server?

584


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

490


What happens if you insert a duplicate key for the primary key column in ms sql server?

522


What is scd (slowly changing dimension)? : sql server analysis services, ssas

590


What are the different type of replication in sql server?

536


What is the purpose of indexing?

595


What are the disadvantages of merge replication?

770


What is a not null constraint?

591


How to defragment table indexes?

546


What is dbcc?

731