SQL-Server and MySQL interoperability?

后端 未结 1 1121
无人共我
无人共我 2021-01-18 08:23

We\'re going from a SQL-Server 2008 backend to a MySQL backend. What\'s the interoperability between SQL-Server and MySQL?

Will we be able to run SQL Queries that r

相关标签:
1条回答
  • 2021-01-18 09:06

    It is possible to add a MySQL server into SQL Server as a linked server.

    • HOWTO: Setup SQL Server Linked Server to MySQL

    Once you have set it up you can query using OPENQUERY like this:

    SELECT t1.colA, t2.colB
    FROM SQLdbName.dbo.tablename AS t1
    INNER JOIN OPENQUERY(MySQLlinkedservername, 
                         'SELECT colA, colB FROM tablename') AS t2
    ON t1.colA = t2.colA
    
    0 讨论(0)
提交回复
热议问题