Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

x64 Linked Server to a MySQL Database Expand / Collapse
Author
Message
Posted Thursday, January 14, 2010 12:37 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:37 PM
Points: 20,798, Visits: 32,713
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".



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)
Post #847837
Posted Wednesday, January 20, 2010 10:15 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:37 PM
Points: 20,798, Visits: 32,713
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: 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



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)
Post #850637
Posted Wednesday, January 20, 2010 10:20 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:37 PM
Points: 20,798, Visits: 32,713
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.




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)
Post #850646
Posted Wednesday, January 20, 2010 11:44 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:51 PM
Points: 2,394, Visits: 18,021
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
Post #850716
Posted Wednesday, January 20, 2010 12:01 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:37 PM
Points: 20,798, Visits: 32,713
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.



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)
Post #850729
Posted Wednesday, June 25, 2014 5:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, August 5, 2014 11:27 PM
Points: 1, Visits: 20
thank u soooooooooooooooo much

its really working 4 me
:)
Post #1585831
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse