Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 8th, 2006, 03:08 AM
Authorized User
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trigger Problem in sql server

Hi All

What is actual use of inserted and deleted temporary system table in triggers in sql server2000?

what is the importance of using it?

Is there any kind of special situation where we need to use inserted and deleted temporary system table in sql server?


Old March 1st, 2007, 07:09 AM
Authorized User
Join Date: Mar 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Monika,

SQL server stores the temporary data in INSERTED and DELETED table while working on triggers.


I give u an Example...

If u have just inserted a row in the table T1, u wont be able to get this row from T1 within the Trigger. You can retrieve this row from INSERTED table.

SQL Server uses INSERTED Table for INSERT and UPDATE trigger, DELETED is used by DELETE Triggers.
There is no UPDATED table as some people get confused.

Good Luck,


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL+Trigger arup_kc SQL Server 2000 5 March 20th, 2007 08:06 AM
Trigger in SQL Server 2000 deniscuba SQL Server 2000 4 April 1st, 2005 11:37 AM
SQl Server 2000 Trigger everest SQL Server 2000 5 April 26th, 2004 01:44 AM
Can we stop to fire trigger in SQL Server? vincentc SQL Server 2000 2 November 18th, 2003 12:52 AM
Insert data across different server from Trigger Arnold SQL Server 2000 1 November 3rd, 2003 07:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.