我遇到了一个问题,我需要将 DTS pkgs 带到新服务器并让它们作为计划的 SQL 作业运行。我已经进入 DTS pkg 并编辑了连接以包括新的 2008 服务器名称和新的 UNC 路径。DTS 包采用固定长度的平面文件并将这些值加载到 db 表中。编辑 DTS 后,我导出到结构化 DTS 包文件。然后我转到新服务器并使用迁移向导将 DTS 转换为 DTSX 文件。完成后,我将 DTSX 导入具有“依赖服务器存储和角色进行访问控制”保护级别的集成服务。
然后我运行该软件包,但由于以下原因而失败:
Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1]
Description: Data conversion failed. The data conversion for column "Col004" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
End Error Error: 2013-03-04 23:19:13.01 Code: 0xC020902A Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1] Description: The "output column "Col004" (22)" failed because truncation occurred, and the truncation row disposition on "output column "Col004" (22)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component. End Error Error: 2013-03-04 23:19:13.01 Code: 0xC0202092 Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task Flat File Source [1] Description: An error occurred while processing file "\\hpf15release\global$\cold\coldin\FTP_DXPX\Medical_Services_Master_File" on data row 1. End Error Error: 2013-03-04 23:19:13.01 Code: 0xC0047038 Source: Copy Data from Medical Services to cabinet dbo SERVICE_FILE Task SSIS.Pipeline Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Flat File Source" (1) returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:19:12 PM Finished: 11:19:13 PM Elapsed: 0.952 seconds. The package execution failed. The step failed.
我正在使用与旧服务器中使用的相同的包...和平面文件,它在旧服务器上运行良好。它试图复制到的表具有具有相同特征的相同列......所以试图了解这个错误来自哪里。
非常感谢任何帮助