Magic Tables ?

Answer Posted / punit chauhan

whenever a trigger is fire in response to an insert, delete and update statement.
Two special tables create, these are the inserted and deleted tables, they are also referred as magic tables.

* whenever we insert any record into the table then trigger use inserted table.

* whenever we delete any record into the table then trigger use deleted table.

* whenever we update any record into the table then trigger use inserted and deleted tables.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is index, cluster index and nonclustered index?

593


How do I find the transaction log size in sql server?

604


Explain what is the function of sql server agent windows service?

630


How do you delete a data source?

651


What are commit and rollback in sql?

656






how to trace the traffic hitting a sql server? : Sql server database administration

1267


What is a data collection table?

627


what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration

615


How do you delete a trigger?

681


It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio

641


What is a transactions?

679


What is trace flag in sql server?

614


How to copy the tables, schema and views from one sql server to another?

638


Explain differentiate between a having clause and a where clause?

585


Explain sql server service broker?

610