x

How can I transfer mysql tables to MS-SQL?

I have a mysql database.I would like to transfer all data to a new database in MS-SQL. Can you give me information about how to do this?

more ▼

asked Nov 06, 2009 at 10:28 AM in Default

HakanD gravatar image

HakanD
1 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

First, set up a linked server.

http://forums.mysql.com/read.php?60,123221,123221#msg-123221

Once this has been completed, you can simply eith do:

Select * into <newtable> from <mysqltable>            

Or you can create a project in SSIS and pull data and objects across that way.

more ▼

answered Nov 06, 2009 at 11:03 AM

RickD gravatar image

RickD
1.7k 1 1 4

Just to expand a bit on that the syntax is likely to look like: Select * into newtable from mysql_alias.mysqltable
Nov 07, 2009 at 10:13 AM Kristen ♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x69
x15

asked: Nov 06, 2009 at 10:28 AM

Seen: 950 times

Last Updated: Nov 07, 2009 at 10:12 AM