Solved

SSIS - import data from MySql to Sql Server 2008

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now