January 14, 2010 at 12:37 pm
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".
January 20, 2010 at 10:15 am
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
January 20, 2010 at 10:20 am
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.
January 20, 2010 at 11:44 am
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
January 20, 2010 at 12:01 pm
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.
June 25, 2014 at 5:16 am
thank u soooooooooooooooo much
its really working 4 me
🙂
:-D:-D:-D:-D:-D:-D:-D:-D
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply