Help

  • I got two servers SERV_A (DATABASE_A -> TABLE_A) AND SERV_B (DATABASE_B -> TABLE_B)

    When i execute DML(INSERT,UPDATE AND DELETE) on TABLE_A that should effect TABLE_B.

    How can i do this, if you have any ideas please help me.

    Note: replication is not an option.

     

  • If I understand you correctly you want either triggers or views. Look them up in Books Online.

  • Thanks, Trigger worked for me.

  • You also might consider linked servers.

  • you must use a trigger

    CREATE TRIGGER tr_ins_tableA

    ON tableA

    FOR insert AS

    --insert into server B; must be linked

    INSERT INTO ServerB.DataBaseB.dbo.tableB

             (col1,

             col2,

             col3,...

             )

             SELECT 

                ins.col1,

                ins.col2,

                ins.col3,...

             FROM inserted ins

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply