Solved

connecting mysql to mssql 2012

Posted on 2014-11-17
6
387 Views
Last Modified: 2014-11-21
trying to connect from SSMS for MS SQL 2012 to MySQL 5.521
in order to run a stored procedure to pull data from MySQL and process it in SQL 2012

i believe i need a linked server.
to get a linked server i believe i need an ODBC connection.

i am running windows 7 professional 64 bit

when creating the linked server, not sure what to put into the provider string or location...   catalog i am assuming is the database i want to connect tol
0
Comment
Question by:CASorter
  • 3
  • 3
6 Comments
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 40447493
Yes, you need to set a linked server using ODBC but don't forget that you need to install the MySQL client in the SQL Server machine so it can has the necessary driver.
Here's a step by step on how to do it.
0
 

Author Comment

by:CASorter
ID: 40447514
when trying to connect the ODBC i get

Connection using old (pre-4.1.1) authentication protocol refudsed (client option 'secure_auth' enabled).

i am using mySQL connector/ODBC v 5.3
0
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 40447530
Which version of MySQL are you connecting to? The driver and the MySQL server should has the same versions.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:CASorter
ID: 40447571
5.3 is the highest version of the odbc driver i could find.

initial queston has version of mysql in it..   5.521
0
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40449270
Yes, MySQL 5.3.4 connector for ODBC.
Looks to me that the error that you are getting now it's a bug. Check this thread in MySQL blog.
0
 

Author Closing Comment

by:CASorter
ID: 40458084
very cumbersome...

not the answer..
the ability to connect.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql server tables from access 18 19
SSRS Enable Remote Errors 4 26
T-SQL Default value in Select? 5 27
Replace the integer portion in CAST with a column 4 16
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question