Hey everyone,
Full disclosure, I am new to Databases and SSIS, but what I am trying to figure out is how I can copy my Database tables from within MySQL to MSSQL using an SSIS package. I've only found a couple of forums online where this has been documented/attempted to some degree, but the instructions that were provided didn't match the options I have in Visual Studio to successfully complete things.
I've got a current working environment where I can take a flat file (.csv), pull it in to SSIS and have it populate/update a table in MSSQL. It's my understanding that one of the core purposes of SSIS is the ability to take Databases from various platforms (Oracle, MySQL, MSSQL, .csv, etc...) and connect them for the purpose of analyzing all the data in one place, which can then allow you to do things like creating detailed reports. In my case, I now need the connection from MySQL to do the same thing I am doing with the .csv - to populate/update a table within MSSQL.
- Here are a couple of links I found when browsing Google to try and find a way to do this, but the instructions are either not detailed enough, or specific enough to my versions to be able to get through them because only portions of the steps are even available to me within the Visual Studio - meaning, (to me) that either my version is newer and the names of things have changed, or the article is just not detailed enough to walk me through the process with my limited understanding.
https://www.cdata.com/kb/tech/mysql-ssis-task-import-2008.rst
https://smallbusiness.chron.com/import-csv-ssis-46849.html
I am using the following software versions:
- MSSQL 2019
- SSDT 2022
- MySQL 8
- mysql-connector-net-8.0.31
The furthest I have been able to get so far is having the "Connection Manager" point to the machine that has MySQL on it, and verified that the connection is successful. From there, all the documents I have read say to use the "Data Reader" or "Data Reader Source", or something to that degree. However, my only options that I see on either the Control Flow or Data Flow tabs are:
- OData Source
- ODBC Source
- ADO NET Source
- CDC Source
- OLE DB Source
- DataReader Destination
I've basically tried all of these (one-by-one), and tried to see if I could get things to work, but despite having the mysql drives installed (needed before you can even setup MySQL as a connection) and the appropriate Connection Manager setup, MySQL doesn't exist as a drop-down nor setting anywhere within the properties of any of the above sources.
Any guidance would be greatly appreciated!