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
Is it possible to update the views? If yes, how, if not, why?
What are the essential components of sql server service broker?
Can you explain what are various ways to enhance the ssrs report?
What is difference between sql and sql server?
What happens if the update subquery returns multiple rows in ms sql server?
How can we determine what objects a user-defined function depends upon?
Explain in brief how sql server enhances scalability of the database system?
What is sharding?
What is resource db in sql server?
Difference between report and query parameter. Why do we need different type of parameter?
What is the difference between functions and stored procedures?
What do you mean by data manipulation language?
What is data source object?
Does index speed up select statements?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?