Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Duplicate Transactions

Author  Topic 

LarryDC
Starting Member

6 Posts

Posted - 2013-06-10 : 13:15:58
Hello,

Is it possible to "Watch" a SQL table for any records being added in a table and then as soon as its added grap some of the fields and place it in another table?

What would we use to perform this if it is possible?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-10 : 13:20:08
yep...You need to write a trigger on the table for relevant actions like INSERT,UPDATE

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2013-06-10 : 13:26:57
two typical ways that is done with all versions of sql server:
1. sql replication
2. trigger on subject table with logic to write to an audit table


Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -