Re: How to syncronize two tables?
From: Louis Davidson (dr_dontspamme_sql_at_hotmail.com)
Date: 01/04/05
- Next message: Andrei: "Deadlock on delete records from partitioned view"
- Previous message: Alejandro Mesa: "RE: how to catch a @@error from openquery linking to db2 table"
- In reply to: EarthSpiders: "How to syncronize two tables?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 Jan 2005 11:02:19 -0600
What do you mean:
> they works separately, but together they create a conflict?
What is the error message?
-- ---------------------------------------------------------------------------- Louis Davidson - drsql@hotmail.com SQL Server MVP Compass Technology Management - www.compass.net Pro SQL Server 2000 Database Design - http://www.apress.com/book/bookDisplay.html?bID=266 Note: Please reply to the newsgroups only unless you are interested in consulting services. All other replies may be ignored :) "EarthSpiders" <earthspiders@libero.it> wrote in message news:a4183960.0501040742.6d85b6fe@posting.google.com... >I have 2 db A and B, with 2 tables C and D with the same fields and i > want to sync them with trigger. > I wrote this one for the delete: > > ****In the db A > > CREATE TRIGGER [Delete] > ON A.[dbo].[C] > > FOR DELETE > AS > > DELETE FROM B.[dbo].[D] > WHERE B.[dbo].[D].Key = (SELECT Key > FROM deleted) > > > ****In the db B > > > CREATE TRIGGER [Delete] > ON B.[dbo].[D] > > FOR DELETE > AS > > DELETE FROM A.[dbo].[C] > WHERE A.[dbo].[C].Key = (SELECT Key > FROM deleted) > > > they works separately, but together they create a conflict? how can I > exceed the problem? > how can i sync the 2 tables? Help!!!
- Next message: Andrei: "Deadlock on delete records from partitioned view"
- Previous message: Alejandro Mesa: "RE: how to catch a @@error from openquery linking to db2 table"
- In reply to: EarthSpiders: "How to syncronize two tables?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading