Magic Tables ?

Answers were Sorted based on User's Feedback



Magic Tables ?..

Answer / 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

Magic Tables ?..

Answer / rani

Refer this link which nicely demonstrates the Magic Table.
Magic Table are the INSERTED and DELETED tables which we
cannot see from the database, but can be accessed using
Triggers.
When a new row is added an INSERTED table gets created with
the inserted row. Similarly when a row is updated a DELETED
table is created with the deleted row. For update the old
data is moved to the DELETED table and the new updated row
gets created in the INSERTED table.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More SQL Server Interview Questions

How we can compare two database data?

0 Answers  


List few advantages of stored procedure.

0 Answers  


How to install sql server 2005 express edition?

0 Answers  


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

0 Answers  


How to get the definition of a user defined function back?

0 Answers  






What is awe?

0 Answers  


How do you create type- insensitive operator?

0 Answers   EXL,


What is an execution plan? When would you use it? How would you view the execution plan?

1 Answers  


Does a server store data?

0 Answers  


What is view in sql?

0 Answers  


What is the function of inner join?

0 Answers  


What is ems sql management studio? : sql server management studio

0 Answers  


Categories