However, another approach, which may perhaps be easier and more predictable is to simply bring in ALL the data from MySQL into a staging table in MSSQL. Once you have it there, writing a query to pick only the rows that you need from the staging table and inserting into your target table is easy. To bring in all the data from MySQL, you can use SSIS, or even Import/Export Wizard in SQL Server. (right click on the database name in object explorer in SSMS and select Tasks -> Import Data