SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

jack10063
Starting Member

5 Posts

Posted - 08/15/2013 :  03:27:10  Show Profile  Reply with Quote
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

India
52309 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.04 seconds. Powered By: Snitz Forums 2000