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 first published in January 2006

Dig deeper on SQL Server Stored Procedures

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close