Feb 08 2019 06:33 AM - edited Feb 10 2019 11:32 PM
Hello I have a question
Is it posible to create a Trigger after Update to write the hole updated data to an identical sql server with the same table structur?
To describe this in more detail: Two database servers with identical tables. One Process writes data into Table 'A' and now I want that a trigger (after insert or after update) writes the same Data into table 'A' on the second database server, with the identical table with the same Structure and the same Login. Is this possible?
Greetings from Germany
Michael
Greetings from germany
Michael
May 28 2019 05:24 AM
Yes. Please follow below step:
INSERT INTO [LINKED-SERVER-IP].MyDb.dbo.Customer (CustomerId, CustomerName) SELECT CustomerId, CustomerName FROM MyCustomers WHERE CustomerId = 5
4. Enable Distributed transactions on server.
https://dba.stackexchange.com/questions/218936/insert-trigger-to-a-linked-server-error