Solved

SSIS - import data from MySql to Sql Server 2008

Posted on 2010-09-13
4
1,183 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DTS Connection Failed 7 70
CPU high usage when update statistics 2 30
Need help constructing a conditional update query 16 47
SQL Server Error 21 8 25
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

803 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