For a new project I have to import the pre-existing data from MySql.
In this site I have found many options, some including the installation of drivers. What is the fastest & easiest way to do it?
Update: this would be just a one time import
-- Create Link Server
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'
-- Import Data
SELECT * INTO testMySQL.dbo.shoutbox
FROM openquery(MYSQL, 'SELECT * FROM tigerdb.shoutbox')
To convert MySQL to MS SQL Server
database you can use Microsoft SQL Server Database Migration Assistant
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With