How to update row in SQL server using linked MySql server -


i created linked server between sql server , mysql.it work fine me. question when insert row in mysql table time want update row in sql server table,

like in mysql table name 'abc' when in table new row insert time in ms sql server table name xyz , in field name status default true , when new row insert in abc table time in xyz table field name status automatically update , status change false.

my linked server name mylink , work fine me , want create trigger update row in sql server,and how create trigger update row in ms sql server.

alter trigger [triggerlocalservertable]    on  dbo.[localservertable]     insert   declare @a varchar(4) declare @b varchar(4) declare @id int  begin  select  @a = a,  @b = b,  @id = id  inserted   update  [linkedserver].[database].[dbo].[table]  set = @a, b = @b  id = @id       end 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -