How to copy a MySQL database into MSSQL 2005

Posted on 2007-10-01
Last Modified: 2009-12-16
What is the best method of importing a MySQL database into MS SQL 2005?  Is there a utility (free), or should I just manually re-create the database?  I dont care about the data, I just need the database structure copied over.
Question by:seanostephens
    LVL 8

    Expert Comment

    by:Bradley Haynes
    Export the database as a SQL file and import it into SQL Server. There is also a utility you can find on Google that does migrations. It is called SQL Way.
    LVL 14

    Accepted Solution

    exporting the database to SQL file will not really work...becos it has to be seen as what the DB holds...and i dont think the SYNTAX of MS and MYSQL are the same!!!

    best is to use a tool or write your own custom tool which will generate the DB objects ...

    if you still want to use a script file you have create scripts and modify them to suit MSSQL syntax...
    LVL 8

    Assisted Solution

    by:Bradley Haynes
    Using 'SQL Way' is the best method for migration between heterogeneous database platforms.

    Author Comment

    Hi Guys,

    Thanks for your responses.  What about using the SQL server 2005 SSIS tool.  Is there anyway to dump a MySQL database say into a file and import it using the SSIS tool?  Or perhaps connect to it using some ODBC connector?

    LVL 8

    Expert Comment

    by:Bradley Haynes
    The SSIS tool is a good way to go; here is a link to some resources:

    IMHO it is rare that migration from MySQL to MSSQL products take place hence the lack of tools.
    MySQL migration tools are focussed on import, is that arrogance or responding to the need?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now