Calling SQL Server's stored procedure from MySQL -
in sql server database has stored procedure dbo.usp_addsum. need execute trigger in mysql database. possible? know linked server mysql vice-versa?
got solution this post , it's fine me. consists in wrap stored procedure in php function , call function mysql external application:
delimiter @@ create trigger test_trigger after insert on mytable each row begin declare cmd char(255); declare result int(10); set cmd=concat('/usr/bin/php ', 'home/sync/send_to_sql_server.php f1=', new.f1, ' f2=', new.f2); set result = sys_exec(cmd); end; @@ delimiter ;
Comments
Post a Comment