Ask the Expert

Accessing tables in the MySQL database from 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.

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: