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

can SSRS reports Cache results?

115


What is a trace frag? Where do we use it?

745


What is the syntax to execute the sys.dm_db_missing_index_details?

656


Explain primary key?

625


What is the difference between count and distinct count?

544






Explain how does the report manager work in ssrs?

592


What are sub reports?

160


Is it possible to replicate data from sql server to oracle? : sql server replication

652


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

611


List out a number of the wants to setup a SQL Server failover cluster?

663


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

678


What is xdr?

663


Where is my database stored on the hard disk in ms sql server?

686


I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible

1873


what are the disadvantages of cursors? : Sql server database administration

591