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

SQL 2008 MySQL Linked Server Issue Expand / Collapse
Author
Message
Posted Thursday, June 14, 2012 9:41 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, October 17, 2013 7:14 PM
Points: 33, Visits: 76
Hello! I'm having an issue setting up a linked server connection from SQL 2008 R2 (x64) on a Windows 2008 VM to a MySQL server using the MySQL ODBC 5.1 Driver. The system DSN ('rosters') is set up and tests correctly, however when I create the linked server in SSMS the process simply hangs. I created multiple tests, all of them hang and in order to stop them I must restart the service (killing them in activity monitor leaves them in KILL / ROLLBACK).

Would just like to get the linked server set up and any help you could give would be much appreciated!

PS - Here's the code for the linked server (with user name and password removed):

USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'ROSTERS', @srvproduct=N'rosters', @provider=N'MSDASQL', @datasrc=N'rosters'

GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'rpc out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'use remote collation', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'ROSTERS', @optname=N'remote proc transaction promotion', @optvalue=N'true'
GO
USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'ROSTERS', @locallogin = NULL , @useself = N'False', @rmtuser = N'<user>', @rmtpassword = N'<password>'
GO

Post #1316279
Posted Monday, June 25, 2012 4:54 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: 2 days ago @ 3:21 PM
Points: 62, Visits: 150
Have a look at the below link, It may be helpful
http://sqlserverpedia.com/blog/sql-server-bloggers/linked-server-setup-from-sql-server-to-mysql/
Post #1320935
Posted Wednesday, December 05, 2012 10:38 AM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, December 21, 2012 1:42 PM
Points: 1, Visits: 8
Did you ever find a solution to this? I have the same problem. I've tried many things from the web and nothing is making any difference.
Post #1393124
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse