开发者

SQL Server 2005 SQLAgent Triggers

开发者 https://www.devze.com 2023-03-06 18:03 出处:网络
I need to set up a SQL Server trigger to connect to a remote mysql linux server and insert data into a table. Is there a way to do this?

I need to set up a SQL Server trigger to connect to a remote mysql linux server and insert data into a table. Is there a way to do this?

I'm leaning towards triggers rather than scheduled tasks because the trigger will execute each time data is entered/updated in the SQL Server table and only 1 record will be passed to the MySQL table at a time, cutting down on lar开发者_开发知识库ge data transfers and creating a more 'realtime' transfer appearance.


You don't need a trigger for this.

Create a linked server to the remote server, create a stored procedure to insert the data into the linked server and then schedule a task under SQL Agent to run the stored procedure.

  • Writing a Stored Procedure
  • How to: Schedule a Job
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号