Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 mapping problem with varchar columns

Author  Topic 

jack10063
Starting Member

5 Posts

Posted - 2013-08-15 : 03:27:10
Hi,

I used Import Data Wizard in SSMS to create a SSIS package. Now I would like to use UNION ALL for 3 different source files and thus tried to modify the package in Data Tools. However, for some reason Data Tools is complaining about the string column mappings even though the package (with 1 source file) runs okay in SSMS. For example I have defined in the table in SQL SERVER that the first column is VARCHAR(20) but in Data Tools it is showing string[DT_STR] length 50. Can this be a reason that the string columns are not mapped?? Other column types (eg. double, boolean, date) are mapped okay.

thanks for any help.

br,
Jack

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-08-16 : 13:54:05
you need to make sure the datatypes are all compatible. DT_STR corresponds to varchar in SQL server. also length of destination field should be atleast as same as source field.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -