SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


output column does not match the data type "System.String"


output column does not match the data type "System.String"

Author
Message
Chris Hancock
Chris Hancock
SSC Journeyman
SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)

Group: General Forum Members
Points: 82 Visits: 58
I have an SSIS package that reads from a FoxPro 6 database and writes to a SS2005 database. It does not do any manipulations, just a straight data move.

One of my columns is causing me an unusual problem... it is a char(10) in FoxPro and a varchar(10) in SQL. However, I get this error in SSIS when I run the package:

Error: 0xC020837F at Data Flow Task, DataReader Source [19031]: The data type of "output column "soc_sec4" (22964)" does not match the data type "System.String" of the source column "soc_sec4".

Any ideas?

Thanks,
Chris
Gift Peddie
Gift Peddie
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16926 Visits: 14456
The error is correct I think both VFP Char and SQL Server Varchar maps to .NET bytes a value type and not string which is a reference type. If I find an existing solution I will post again.

Change SQL Server column to Nvarchar instead of varchar that may fix it, post again if you still have problems.

Kind regards,
Gift Peddie
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search