SQL Server 2000General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server 2000 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
you cannot write a trigger against a "linked" table. You would have to write the trigger in the souce database engine.
to do an update to a linked server it would be like this...
the "OPENQUERY(LinkedSever, 'SELECT Field1 FROM Table1') " basically replaces the table name you would use in a regualr SQL statement.
UPDATE OPENQUERY(LinkedSever, 'SELECT Field1 FROM Table1')
SET Field1 = Value1
WHERE field2= x
Is there a reason you don't convert the data directly into SQL? The you can write as many trigger etc as you wish. Cannot the application be changed to point to the newer database?