Click here to Skip to main content
Click here to Skip to main content

Migrate MySQL to Microsoft SQL Server

By , 5 Sep 2008
 

Introduction

This article describes a few simple steps in order to migrate MySQL into Microsoft SQL Server 2005. The technique is very easy, but useful if you plan to move your data from MySQL and upgrade it finally to a Microsoft SQL Server environment.

Background

Initially, I started my search for an article on CodeProject regarding MySQL->MS SQL migration without any success. I had an old PHPbb forum running, that needed to be upgraded to a Microsoft environment entirely. I could have just kept MySQL and Apache server, but instead I decided to migrate the entire concept of PHPbb to a YAF-forum.

Setup ODBC Connection to MySQL Database

This article will not go through how to setup a MySQL or Microsoft SQL server, but make sure you have downloaded at least the MySQL ODBC Connector from here.

For this article, I downloaded the MySQL ODBC Connector 5.1.

The setup of this connector is pretty simple:

  • Open your ODBC Data Source Administrator from the Control Panel -> Administrative Tools. Under the tab labelled as "System DSN", press the "Add" button.

    Setup_ODBC1.jpg

  • On the "Create New Data Source" dialog that appeared, choose MySQL ODBC 5.1 Driver and then press the "Finish" button.

    Setup_ODBC2.jpg

  • After that, a MySQL connection configuration dialog will appear. Add your MySQL database account information in it, preferably the "root" account which has full access to your databases in MySQL. In this case, my database is called "tigerdb". Do not change the port to anything other than 3306, unless during your MySQL server installation, you have defined something else.

    Setup_ODBC3.jpg

  • Press the "Test" button to ensure your connection settings are set properly and then the "OK" button when you're done.

Create a Microsoft SQL Link to your MySQL Database

In this state, you are ready to establish a link towards MySQL database from your Microsoft SQL Server Management Studio. Open a query window and run the following SQL statement:

EXEC master.dbo.sp_addlinkedserver 
@server = N'MYSQL', 
@srvproduct=N'MySQL', 
@provider=N'MSDASQL', 
@provstr=N'DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost; _
	DATABASE=tigerdb; USER=root; PASSWORD=hejsan; OPTION=3'

This script will produce a link to your MySQL database through the ODBC connection you just created in the previous stage of this article. The link will appear in the Microsoft SQL Server Management Studio like this:

Create_link.jpg

If it doesn't show up in the treeview, press the refresh button.

Import Data between the Databases

Create a new database in Microsoft SQL Server. I called mine "testMySQL". In the query window, run the following SQL statement to import table shoutbox from the MySQL database tigerdb, into the newly created database in Microsoft SQL called testMySQL.

SELECT * INTO testMySQL.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM tigerdb.shoutbox')

That's it!

Points of Interest

During this migration, I had to import lately my newly migrated database into the structure of "Yet Another Forum" tables. For that, I used a series of SQL-scripts. However I am not going to post them here. If folks leave comments here about the need for these scripts, just tell me and I will gladly change this article and start adding them. You're welcome to post your comments.

Another issue you will most likely encounter are the differences between these two databases based on datatypes. I would suggest to proceed with a reverse engineering of your MySQL database (for example, Visio is one application that provides reverse engineering functionality) and start mapping all the differences and potential risks of losing parts of data for instance, within varchar columns.

Microsoft SQL datatypes: http://msdn.microsoft.com/en-us/library/aa258271.aspx

MySQL datatypes: http://dev.mysql.com/tech-resources/articles/visual-basic-datatypes.html

History

  • 2008-09-05: First version of this article

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Niklas Henricson
Software Developer (Senior) TakePoint AB
Sweden Sweden
Member
I started my journey with programming 1999 by working for the Swedish Working Life Enviroment authority.
 
Since then, I've been involved in numerous projects and jobs involving MTS/COM+, VB 6.0, ISE Eiffel 4.5, ASP.NET/C#/VB.NET as well as common ASP, and finally database enviroments based on Oracle, MySQL and MS SQL.
 
Between April 2007 and December 2008, I worked as consultant for Mandator AB with some of my assignments at Ericsson ST in Stockholm.
 
In 2009 I moved to south Sweden where I continued working as an IT consultant at Cybergroup Group South AB with assignments at Sony Ericsson, Swedish Institute for Infectious Disease Control and other in-house projects.
 
Today, I work for a smaller consultant company called TakePoint AB with an assignment at BTJ (Bibliographic Services of Sweden) developing a system that service all public libraries of Sweden with bibliographic information and distribution of media.
 
One of my most favorite books in regards to programming is "The Pragmatic Programmer". Something that I definetely recommend for everyone to read.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionBro you are a F*&(ng Legend!!memberRobert James Battam7hrs 13mins ago 
Saved me buying one of those convertor programs! Big Grin | :-D
GeneralThank Youmemberron_x15 Mar '13 - 2:17 
Thank you it helped me a lot... Smile | :)
GeneralRe: Thank YoumemberNiklas Henricson15 Mar '13 - 3:21 
You're most welcome Smile | :)
Niklas Henricson

Questionthank youmemberanhdktk18 Dec '12 - 1:50 
Useful post
GeneralMy vote of 5memberMember 84230921 Dec '12 - 1:14 
Excellent article
SuggestionA note for 64 bit users...memberandymccluggage21 Aug '12 - 0:17 
Remember if you're using a 64 bit Windows environment that you need to create the System DSN using the 32 bit version of the DSN Administrator Tool. By default the control panel loads the 64 bit version.
 
32 bit version can be loaded from here...
 
c:\windows\syswow64\odbcad32
GeneralRe: A note for 64 bit users...memberSamsonSargsyan20 Apr '13 - 10:26 
Hi
But I cannot find mysql odbc provider in c:\windows\syswow64\odbcad32.
Please help.
QuestionMultiple TablesmemberRicardo Casquete6 Aug '12 - 15:03 
.... good stuff Smile | :) , however I am dealing with 70 tables here.
Maybe in a stored proc?
 
Cheers
Ricardo Casquete

QuestionThere are 3rd party tools for thismemberDamir Bulic1 Aug '12 - 21:38 
I believe it's good to know that such migration can be done extremely quickly with a commercial application Full Convert Enterprise. It doesn't require ODBC drivers at all and is very fast.
Regarding search for equivalent datatypes - Full Convert automatically selects closest matching datatypes, even taking into consideration target database version. For example, date and time datatypes are introduced in SQL Server 2008 and not available in earlier versions. Also, Full Convert allows datatype (and many other things) customization.
SuggestionRe: There are 3rd party tools for thismemberDmitry Narizhnykh14 Nov '12 - 8:16 
Another tool to automate the migration is DBConvert for MySQL and MS SQL
It takes about 5-10 minutes to convert 1Million records.
Automatic views conversion between MS SQL and MySQL is available.
Dmitry

QuestionProblem with the second querymemberEhud Grand10 Jun '12 - 3:41 
Hey
The first query workd fine, but when I test the linked server I get 7307 error.
Any idea how I solve it?
Thank you!
Questioncopy just data or whole table structure too? [modified]memberr7ap7r29 May '12 - 0:41 
Hi,
 
Do i have first to create the table with its collumns and datatypes in my test database in SQL?
Or does this script migrate everything (table structure and data)?
 
Error message after the second script:
<<Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQL".>>
 
what did I do wrong?

modified 29 May '12 - 6:50.

BugError occur when compile last query in SQL2005memberBilal Ahmed Lilla17 Apr '12 - 21:44 
I successfully complete all steps but last query not run.
mySql database name : emots.
Sqldatabase:testMySQL.
myQuery :
SELECT * INTO testMySQL.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM emots.shoutbox')
 
MSSQL version : 2005
ERROR:
OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "[MySQL][ODBC 5.1 Driver][mysqld-5.0.45-community-nt]Table 'emots.shoutbox' doesn't exist".
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSDASQL" for linked server "MYSQL".
GeneralRe: Error occur when compile last query in SQL2005memberDarvin Pappachan13 Aug '12 - 21:36 
This query missing the semi colon, which is mandatory in mysql queries.
Use like this
SELECT * INTO testMySQL.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM emots.shoutbox;')

GeneralMy vote of 5membermanoj kumar choubey2 Apr '12 - 0:28 
Nice
GeneralMy vote of 5memberSimbarasheM24 Feb '12 - 11:08 
Excellent Article. Still worth 5 Stars but there are known issues with SQL Server 2008 acknowledged by Microsoft. Anyone found a solution to the column u permissions error when you try to view the data in a table?
QuestionWhat about varbinary fields?memberKiks14 Feb '12 - 2:18 
I've got a similar task to do, but at the opposite.
I need to syncronize a mySQL db with a SQL Server 2008 db.
These dbs contains some blob fields (varbinary(max) in SQL Server that in mySQL are MEDIUMBLOB), but when I run the INSERT statement, I receive this error:
 
Provider OLD DB "MSDASQL" for linked server XXX reply with the message "Query-based Insert and update statement are non supported for Blob values"
 
Any idea to resolve this?
Thans
QuestionProblem to migrate a whole mysql DB into MSSQL 2008memberKodjak25 Nov '11 - 0:59 
Hi Niklas,
thanks for this nice article, almost everything went smoothly. But I do have a few questions:
1. In this script:
EXEC master.dbo.sp_addlinkedserver
@server = N'MYSQL',
@srvproduct=N'MySQL',
@provider=N'MSDASQL',
@provstr=N'DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost; _
DATABASE=tigerdb; USER=root; PASSWORD=hejsan; OPTION=3'
 
What does the option=3 stand for?
 
And now my real problem, where I need help with:
That's the script I'm running:
SELECT * INTO mysqlforum.dbo.shoutbox
FROM openquery(mysql, 'SELECT * FROM mysql')
 
In your own script the last line ends with FROM tigerdb.shoutbox, but that shoutbox part, I don't have that actually. My database is just called mysql.
 
When I run the script MSSQL 2008 gives me following error:
OLE DB provider "MSDASQL" for linked server "mysql" returned message "[MySQL][ODBC 5.1 Driver][mysqld-5.1.53-community-log]No database selected".
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSDASQL" for linked server "mysql".
 
What does this error means?
 
A bit of background information:
The mysql db I want to migrate is part of the WAMP server. I do have a second DB, it's the InformationSchema.
 
Any advice is appreciated.
 
Kind regards,
Jay
AnswerRe: Problem to migrate a whole mysql DB into MSSQL 2008memberKodjak25 Nov '11 - 3:32 
For all others, I could solve my problem as it was due to a few misunderstandings of the scripts above.
QuestionproblemmemberMihaly Sogorka9 Nov '11 - 5:12 
Hi!
I've got an error message when trying to select from MySql database:
 
Query:
 
SELECT * FROM openquery(INTERSPIRE2, 'SELECT * FROM send.ss_newsletters')
 
Error message:
 
OLE DB provider "SQLNCLI" for linked server "INTERSPIRE2" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "INTERSPIRE2" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 53, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [53]. 
 
What could be wrong?
 
Thanks in advence!
AnswerRe: problemmemberNiklas Henricson9 Nov '11 - 6:43 
Mihaly Sogorka wrote:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections."

 
Like the message indicates you need to allow your SQL server, remote connections. Creation of database links are clasified as such. Go to your SQL Server Configuration Manager and check your settings, or look for help by searching at MSDN troubleshooting pages.
Niklas Henricson

QuestionError to mygrate datamemberratulalam7 Oct '11 - 21:56 
I have run the script
 

 
EXEC master.dbo.sp_addlinkedserver
@server = N'MYSQL',
@srvproduct=N'MySQL',
@provider=N'MSDSQL',
@provstr=N'DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost;DATABASE=test; PASSWORD=alam; OPTION=3'
But when I run the following script:
 
SELECT * INTO testMySQL.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM test.aa')
 

 
I get the error:
 
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "MSDSQL" has not been registered.
 
So how Can I solve the problem?
Thanks in Advaance........
AnswerRe: Error to mygrate datamemberNiklas Henricson9 Nov '11 - 6:44 
Hello,
 
It would seem that your MySQL ODBC provider was not installed properly. Either install a new one, or try by reinstalling it. This is pure installation and configuration issue I cannot help you much with.
Niklas Henricson

QuestionDon't see MySQL option when adding new ODBC data source in control panelmemberhalifaxdal18 Sep '11 - 1:59 
Thank you for sharing this with us, this is what I need now.
 
However, I stuck at the very beginning, when I try to install a new ODBC data source, I don't even see "MySQL ODBC 5.1 Driver" like in your second screenshot in the post. Cry | :((
 
What's missing here?
 
Thank you very much.
 
The email I registered for CodeProject is full of spam now, if you know how to fix it, could you please send me email at xie3208080 gmail com?
 
Thanks again and hoping to hearing from you soon.
AnswerRe: Don't see MySQL option when adding new ODBC data source in control panelmemberNiklas Henricson9 Nov '11 - 6:48 
At the time I was writing this article things have changed. Did you use the same environment I specify on the top of the article (SQL Server 2005, Win XP)? Try reinstalling your mySQL ODBC provider or download a newer one. If you are using Windows 7, Windows 8 alfa or any other newer operating system, configuration settings might be relocated.
Niklas Henricson

QuestionHow can loop through all tables in my dbmemberaramosvizcarra15 Sep '11 - 4:14 
I want to migrate a full db into mssql express and so far I have done for one table. I have several tables and it would take a long time to do it and probabaly I'll do this with other databases as well. Could you direct me to a page where I can learn fast script for ms sql. Or show me the general way to loop through tables in a db?
 
Thanks
GeneralMigration another solutionmemberTheAceSolutions14 May '11 - 3:07 
We have created an opensource database plugin for MySQL that allows to insert data directly in oracle from within MySQL. You can also do both, query oracle tables or insert/update/delete oracle table data just like a JDBC connector but without the need to do any Java/Perl/PHP code.
 
The plugin that I have written that is compatible Debian/Redhat/Windows platforms and MySQL 5.1.X and 5.5.X
 
The plugin works the same way as an MySQL Federated table or as a ORACLE DBLINK type of thing...
 
You create a table and you set the connection string to an Oracle, MySQL, MSSQL server and table name.
 
Feel free to try the MySQL Plugin at : https://launchpad.net/datacontroller
 
you can also visit our website and ask for more information via the download page or forum @ http://www.theacesolutions.com/
 
Thanks
GeneralRe: Migration another solutionmemberNiklas Henricson14 May '11 - 4:22 
Please do not commercialize any products here. If you follow the GNU license over your product refer instead to your own article rather then misleading people to download a shareware.
 

Best regards,
Niklas Henricson
Niklas Henricson

GeneralError converting data type DBTYPE_DBDATE to datetime.memberNasser01923 Apr '11 - 18:21 
I tried to convert in MySQL7 but some table was not able to convert and displayed the following error message
 
Server: Msg 8114, Level 16, State 10, Line 1
Error converting data type DBTYPE_DBDATE to datetime.
GeneralRe: Error converting data type DBTYPE_DBDATE to datetime.memberNiklas Henricson14 May '11 - 4:26 
I am sorry I'm not good in resolving or interpreting MySQL errors, please refer to their documentation.
Niklas Henricson

QuestionMultiple tables?membersillicoid5 Mar '11 - 1:08 
Hi there,
 
i tried that script yesterday to move data from mysql to mssql database. That worked fine using ur guide. But my database has about 50 different tables and i want to migrate all of them into the mssql database.
So is there a way to automatically copy the whole database / every table found in the source database and not table by table "by hand"?
 
Thx
AnswerRe: Multiple tables?memberNiklas Henricson14 May '11 - 4:28 
It is possible to create a script that automates the migration, but it is part of database development to sometimes do it by trial and error, trying one by one table. That is the most common practice within database developers, before they generate a final script that will be ran in their production environment.
 
I'm sorry but I'm not aware of any automated solutions or products that would make this easier somehow.
Niklas Henricson

GeneralVery cool, but what about large DBsmembersheph25 Aug '10 - 2:09 
Very cool article. I was able to pull several databases into MSSQL using this technique. However, I have a log db that's about 25G and it just dies (runs out of memory) trying to import it wholesale. So I thought I'd use a where statement to break up the output. The only trouble is, after the first import it says the database object already exists. Well, yes, but why is that a problem? Is there a way to do this that would append to the database?
GeneralRe: Very cool, but what about large DBsmembersheph25 Aug '10 - 2:54 
Google was my friend Smile | :) I should've checked there first, but here's the answer to my problem if anyone else runs into this:
 
INSERT INTO database.dbo.table
SELECT * FROM openquery(linked_server, 'SELECT * from db.table where DateColumn < "20071231" AND DateColumn >= "20071201"');
GeneralMy vote of 5memberS.H.Bouwhuis5 Jul '10 - 1:34 
This is an excellent way to migrate a database. You have helped me enormously!
 
Thank you, thank you, thank you.
GeneralRe: My vote of 5memberNiklas Henricson14 May '11 - 4:29 
I'm happy the article helped you out!! Smile | :)
Niklas Henricson

GeneralVery much thanksmembersahil31_mohali20 Mar '10 - 2:10 
It is very useful. Smile | :) Smile | :)
s

GeneralRe: Very much thanksmemberNiklas Henricson14 May '11 - 4:30 
Thank you! I'm glad the article helped you out! Smile | :)
Niklas Henricson

GeneralGood JobmemberMike Hankey6 Sep '09 - 21:03 
Niklas,
 
Thanks for the great article, I had to tweek it a bit as I'm accessing an MySQL database on an Ubuntu server but this gave me a solid base to work from.
 
Thanks,
Mike
 
"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.


Semper Fi
http://www.hq4thmarinescomm.com[^]
My Site
 

NewsPerfectomembercmschick8 Jul '09 - 19:00 
Thanks for the great 'how-to' this works perfectly as long as you follow the steps exactly as written. Saved me a lot of time and headaches.
AnswerRe: PerfectomemberNiklas Henricson8 Jul '09 - 21:51 
Glad to be of assistance Smile | :)
 
Niklas Henricson

GeneralProblem with initializing the data source object of OLE DBmemberAhmed Barradah2 Jul '09 - 8:26 
Hi,
I have followed your code but when I tried to get the data from mysql to SQL Server using this query
 
SELECT * INTO gbdbMS.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM gbdb.shoutbox')
 
I got the following error message
 
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQL".
 
What could be the problem?
 
Thank you for your time and effort.
GeneralRe: Problem with initializing the data source object of OLE DBmemberAhmed Barradah2 Jul '09 - 22:14 
Hi,
I have managed to solve the problem by using more updated ODBC driver 5.1 instead of the 3.1 that I had before.
 
However, I am facing another problem, the data that I am importing from mysql is in Arabic character encoded in UTF8. When I used your query and imported this data into Sql Server, the data is displayed in a funny way that doesn't make any sense. I have changed the collation on the table and the column to Arabic but still no luck.
 
Any suggestion from your part about how to solve this problem? This is a business data and I cannot afford re-enter it.
 
Thank you for your time and effort
GeneralRe: Problem with initializing the data source object of OLE DBmemberNiklas Henricson2 Jul '09 - 22:26 
Your problem is generic for the Arabic characters. UTF8 encoding should support the migration. I have no clue but suggest you upgrade your mySQL database to higher version and then try with the migration from the beginning. Tell me if that works.
 

Best regards,
 
Niklas Henricson

QuestionProblem creating the Linked Servermembersoumenbanerjee2823 Jun '09 - 5:47 
Hi,
 
I am trying to create a linked server between MySQL and MS SQL Server so that the same database can be replicated at both the servers. I am initially testing the linked server with both the servers being on the localhost. Later i would migrate to different server locations.
 
I performed the instructions as mentioned. The creation of the linked server was easy. When i tried to copy one of the tables from MySQL to MS SQL Server, i am getting the following error.
 
OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "[MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'reading initial communication packet', system error: 0".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQL".
 
I am running this on an x64 machine with windows XP SP 2.
 
I have rechecked all the properties. Enabled OLE Automation in SQL Server 2005 Surface Area Configuration. Restarted the MySQL Server. Nothing has helped yet.
 
Kindly suggest what can be the issue and possible solution.
 
Thank You,
Soumen
AnswerRe: Problem creating the Linked ServermemberNiklas Henricson23 Jun '09 - 21:41 
Sounds like a mySQL configuration issue. Try to see if this description resolves your issues:
 
http://forums.mysql.com/read.php?52,152265,241105#msg-241105[^]
 
Please tell me if that made any difference.
 

Best regards,
 
Niklas Henricson

GeneralRe: Problem creating the Linked Servermembersoumenbanerjee2824 Jun '09 - 6:37 
Hi Niklas Henricson,
 
Thank you for getting back to my question. I tried what was mentioned in that bug report. Firstly i didn't find a bind-address value at
 
C:\Program Files\MySQL\MySQL Server 5.1\my.ini.
 
I used these 2 values for the bind-address under the section [mysqld]
 
bind-address=127.0.0.1
bind-address=localhost
 
I still am getting the following errors while trying to run a simple openquery...
 
SELECT * INTO dbName.dbo.tableName
FROM openquery(MYSQL, 'SELECT * FROM dbNameMySQL.tableNameMySQL')
 
------ERROR------
OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "[MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'reading initial communication packet', system error: 0".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQL".
------ERROR------
 
Also when i try to check the properties of the Linked server in MS SQL Server. Was basically trying to check if there are any issues while mapping the user login between the servers. Here are the following errors found...
 
------ERROR------
"The linked server has been updated but failed a connection test. Do you want to edit the linked server properties?"
------ERROR------
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
------ERROR------
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQL".
OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "[MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'reading initial communication packet', system error: 0". (.Net SqlClient Data Provider)
------ERROR------
 
Would re-installing or changing certain passed in values in MySQL help? Kindly suggest what can be a work around.
 
Thank You
Soumen
GeneralRe: Problem creating the Linked Servermembersoumenbanerjee2824 Jun '09 - 8:05 
Hi Niklas Henricson,
 
I wanted to update the status of creating the linked server. I was able to successfully configure a MS SQL Server and MySQL server linked server connection on a different 32 bit machine. Both the servers are local and i tried the same steps that you had mentioned. Its strange though that the linked server was giving me problems on my x64 machine on which i was trying till now. Any idea why that would happen?
 
Thank You,
Soumen
AnswerRe: Problem creating the Linked ServermemberNiklas Henricson24 Jun '09 - 21:43 
Hello Soumen,
 
The only thing I can think of is "myODBC connector" version you are using is the 32 bit one. Are you sure you did a download on the 64 bit one?
 
The download webpage is located at: http://dev.mysql.com/downloads/connector/odbc/5.1.html#winx64[^]
 
If that is not your issue and have verified the version of your "myODBC connector", I have nothing else to think of. For that I am very sorry!
My suggestion then is to complete the migration at your 32-bit enviroment and then finally restore the database at your x64 platform.
 

Best regards,
 
Niklas Henricson

GeneralRe: Problem creating the Linked Servermembersoumenbanerjee2825 Jun '09 - 4:20 
Hi Niklas,
 
I have the 64-bit version of the myODBC connector. I was myself surprised with this kind of behavior. Anyways i would do as you suggested. Use migration on the 32-bit environment and then restore on 64-bit.
 
Thank You,
Soumen

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 5 Sep 2008
Article Copyright 2008 by Niklas Henricson
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid