Home Forums SQL Server 2005 Administering How to Create Linked Server for a MySQL database using SQL Server Management Studio RE: How to Create Linked Server for a MySQL database using SQL Server Management Studio

  • These instructions for creating a linked MySQL server were great!

    I have a couple more questions concerning querying the MySQL tables. I am wondering if I have to use the OpenQuery function in order to query the MySQL database. The OpenQuery function does not allow variables to be used in its arguments and what I need to do is write a stored procedure that calls the MySQL database and gets the data for a certain record or records and inserts it into the SQL Server database tables. I have found that I can create a view of the whole MySQL table in SQL Server and then use the view in the stored procedures to insert into the SQL Server tables, but I'm wondering if that is my only option. I also tried writing a query to select using the four part identifier, but that is not working either. It's probably because there is no owner for the MySQL tables, but I'm really just guessing on that one.

    I appreciate any help you can provide.

    Thanks!


    Wendy Schuman