SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


x64 Linked Server to a MySQL Database


x64 Linked Server to a MySQL Database

Author
Message
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)

Group: General Forum Members
Points: 94109 Visits: 38955
Has anyone setup a linked server on SQL Server 2008 x64 to a MySQL database using the MySQL ODBS 5.1 x64 driver.

I am getting the following error and I have played with the various settings on the ODBC side to no affect:

Msg 7313, Level 16, State 1, Line 1
An invalid schema or catalog was specified for the provider "MSDASQL" for linked server "ESS".

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)

Group: General Forum Members
Points: 94109 Visits: 38955
Chad Crawford (1/20/2010)
Lynn Pettis (1/20/2010)
Have to ask, are you running SQL Server 2005 x64 or SQL Server 2005 x32? If you got the linked server to work using the x64 MySQL ODBC driver I would be very interested in what settings you used, as well as which version.

I had no problems setting up the MySQL ODBC driver and linked server using SQL Server 2005 x32.


Both. x64 in prod, x32 in dev and we set up the linked server on both.
On x64, we're using version 5.1 of the odbc driver.

Collation Compatible False
Data Access True
RPC False
RPC Out False
Use Remote Collation True
Collation Name *blank* (the value, not the text :-))
Connection Timeout 0
Query Timeout 0
Distributor False
Publisher False
Subscriber False
Lazy Schema Validation False

And on the MSDASQL Provider:
Dynamic parameter disabled
Nested queries enabled
level zero only enabled
allow inprocess enabled
non transacted updates disabled
index as access path disabled
disallow adhoc access disabled
supports 'Like' operator enabled

On the ODBC Datasource, I have the following values set:
Page1:
Returned Matched Rows instead of affected rows
Allow big result sets
use compression
treat bigint columns as int columns
enable seafe otpoins
Page2:
Don't prompt with connecting
Page3:
Include table name in SQLDescribeCol()
Disable transaction support
--all other options blank or disabled.

I'm not the admin on the MySQL side, but I can do any other testing to see if something works here that doesn't there, I'm willing.

@jcrawf02: :-D Thanks. It's so seldom I get to offer anything that I jump on something that even looks close.

Chad

EDITED: Added the driver version and ODBC settings


Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)

Group: General Forum Members
Points: 94109 Visits: 38955
Chad,

Thank you. Turned out I needed to make a couple of changes to the properties for the MSDASQL provider. Didn't have to do that on the x32 linked server (or at least I don't remember doing it).

I wish you had seen this post earlier, I have spent a lot of time looking at an older version of the x64 ODBC driver and trying to figure out how and where to install it manually.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Chad Crawford
 Chad Crawford
SSCarpal Tunnel
SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)

Group: General Forum Members
Points: 4349 Visits: 18732
Wow... it actually worked?!?!

I can't claim credit for the settings - I copied them from a website/blog/forum somewhere I can't now find and luckly it worked for me. Glad it worked for you too.

Chad
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)SSC Guru (94K reputation)

Group: General Forum Members
Points: 94109 Visits: 38955
Chad Crawford (1/20/2010)
Wow... it actually worked?!?!

I can't claim credit for the settings - I copied them from a website/blog/forum somewhere I can't now find and luckly it worked for me. Glad it worked for you too.

Chad


Doesn't matter to me where the info originally came from, you had it working and that is all that mattered to me at this point.

Thank you again.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
arpita.sharma 52553
arpita.sharma 52553
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 67
thank u soooooooooooooooo much

its really working 4 me
Smile
:-D:-D:-D:-D:-D:-D:-D:-D
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search