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
Explain can SSRS reports Cache results?
Explain what is the function of sql server agent windows service?
What is the difference between clustered and a non-clustered index?
Which tcp/ip port does sql server run on? How can it be changed?
What are the two modes of authentication in sql server?
Explain SSRS Architecture?
What are the difference between primary key and unique key? : sql server database administration
What are the extra roles available in msdb? : sql server security
can an automatic recovery be initiated by a user? : Sql server administration
What is difference between foreign key and unique key?
List layers of abstraction microsoft architectured to provide relational db through cloud platform ?
Is t sql the same as sql server?
Can you move the resources after pausing the node? : sql server database administration
What is the temp table?
Define inner join? Explain with an example?