Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert Data from SQL Server to MySql using Trigger

I have two databases, one is in SQL Server and other is in MySql. I want to insert data into MySQL table while an insertion occurs in the SQL Server table. Is it possible using a trigger in SQL Server? Please give me an answer?

like image 467
sjkon Avatar asked Mar 03 '26 17:03

sjkon


1 Answers

You can create connection from MSSQL to MySQL by going through this article on connecting MSSQL to MySQL.

After successfully creating connection from MSSQL to MySQL, you can write trigger to insert data in MySQL database using INSERT query in your trigger.

Hope it helps...

like image 110
jsist Avatar answered Mar 05 '26 05:03

jsist