我需要将数据库导出为ASCII格式的制表符分隔文件。我使用派生列将任何Unicode字符串转换为非Unicode字符串。例如,以前的Unicode文本流现在被转换为:
(DT_TEXT,20127)incomingMessage
但SSIS仍在寻找ANSI。我仍然在平面文件目的地看到错误:
The code page on input column <column_name> is 1252 and is required to be 20127.
对于表中的任何列,而不仅仅是Unicode列。
这就是我一直在努力确保使用ASCII:
有什么想法吗?
答案 0 :(得分:2)
How about using the Data Conversion task? Connect the Flat File task to the Data Conversion and then change the metadata on the fly to suit your needs. You should be able to delete the derived column task if you change the metadata to handle the unicode issues in the data conversion task. Then you can process the records accordingly into the OLE DB Source without issues.