0

Setup

I have a data flow task with:

  • An OLE DB Source selecting all data from a database table (SQL Native)
  • An OLE DB Destination of an Access 2003 File template (MS Jet 4.0)

So Essentially I am selecting a table and inserting it into a .mdb file.

Problem

I have the error:

column [X] cannot convert between unicode and non-unicode string data types

However If I add a 'Data Conversion Step' to convert all columns of type DT_STR to DT_WSTR, that error message goes away however I get the error message:

[DTS.Pipeline] Error: "component "OLE DB Source" (6289)" failed validation and returned validation status "VS_NEEDSNEWMETADATA". 

Iv'e been Googling this problem for a while and still can't fix it. Any ideas?

4

1 回答 1

1

代替

Select * from tblName 

利用

Select col1, col2, col3, etc from tblName

我发现的原因是,当您使用不同的数据库时,它们可能有一两列会导致问题,因为它没有被映射。因此,当您使用表查询时,请具体说明列名。

于 2013-11-29T14:07:16.020 回答