What are Magic Table?
Answer Posted / imran badrampalli
There are 2 Magic Tables in SQL server Inserted and Deleted.
These are mantained by SQL server for Internal processing
whenever an update, insert of delete occur on a table.
However, we can refere these tables in a Trigger.
Whenever an update table statement is fired SQL server
mantains the original row before updation in a deleted
table and New (updated )row in a Inserted Table.
Same is the case when an insert is fired Only Inserted
table is populated with inserted Row.
and when Delete table statement is fired Deleted table is
populated with the deleted row.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is the data type of time?
Is BCNF better than 2NF & 3NF? Why?
Explain differences between web edition and business edition?
Can I work with several databases simultaneously? : sql server management studio
You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?
What is snapshot replication?
What is an sql server agent?
Why do we use stored procedures in sql server?
How to create new table with "create table" statements?
What are the tables in sql?
what is the primary use of the model database? : Sql server administration
How to count groups returned with the group by clause in ms sql server?
What is a deadlock and what is a live lock?
How to loop through the result set with @@fetch_status?
What is data source document?