Q

Accessing tables in the MySQL database from the SQL 7 database

Find out how to easily access your MySQL database using stored procedures in the SQL 7 database.

I have a MySQL Database and a separate SQL 7 database. I need to be able to access the tables in the MySQL database from Stored Procedures in the SQL 7 database. I have drivers so I can create a system DNS for the MySQL server if needed.
To do this, you'd need to make sure you have an OLEDB provider for MySQL. You can then set up a "linked server" in SQL Server 7. Once this is done, you can access a remote MySQL table by using multipart names eg: MySQLServerAlias.MySQLDatabaseName..MySQLTableName.
This was last published in January 2006

Dig Deeper on SQL Server Stored Procedures

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close