Solved

SSIS - import data from MySql to Sql Server 2008

Posted on 2010-09-13
4
1,185 Views
Last Modified: 2013-11-10
I am trying to import data from MySQL to SQl Server 2008 using SSIS. I added DataFlow with ADo Net source and OLE DB destination. Then I added character map. I mapped all fields accordingly. The source data has types INT unsigned and VARCHAR; the destination tables has INT type and nvarchar type. When I tried to run the package I got error for fields defined as unsigned int: error at data flow task [character Map[16]]: the input column "xx" (61) has an unsupported datatype. it must be DT_STR,ST_wSTr,DT_text, or dt_Ntext.  Appreciate your help.
0
Comment
Question by:DDB
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Wizilling earned 500 total points
ID: 33667280
pls try adding a data conversion or derived column task and change the data type to DT_STR
0
 
LVL 3

Author Comment

by:DDB
ID: 33667500
thank you so much, it worked !  i have another qustion if you don't mind. I have about 100 tables that I need to import. Do you think it's appropriate to put all of them into one package? or it's beter to split them into several packages?
0
 
LVL 13

Expert Comment

by:Wizilling
ID: 33667600
several packages will be hard to execute.
option 1  One package but several data flow task,

option 2. one package and one data flow task and 100 tables in 1 data flow task

I would recommend option 1.


Thanks for the points
0
 
LVL 3

Author Comment

by:DDB
ID: 33673422
thank you!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore 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.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

837 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