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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 mapping problem with varchar columns
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

5 Posts

Posted - 08/15/2013 :  03:27:10  Show Profile  Reply with Quote

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.


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 08/16/2013 :  13:54:05  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000