使用 SSMS 我创建了一个导出到 Excel 的查询并将其保存为 DTSX 包。将此 DTSX 包导入到 BIDS 项目中,使其每小时运行一次,并导出一个附加时间戳的 excel 文件,使用表达式的动态名称。当我从 BIDS 运行时,包成功执行并毫无问题地创建了 excel 文件。我启用了 DelayedValidation 标志。我可以双击 DTSX 文件,运行包,它会毫无问题地创建 excel 文件。当我配置为 SQL 作业时,它失败并出现以下错误
非常感谢任何指导
Microsoft (R) SQL Server Execute Package Utility Version 10.50.2500.0 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 2:53:03 PM
Error: 2012-09-21 14:53:05.54
Code: 0xC0202009
Source: Export MyExportQuery to Excel Destination - Query [73]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37. End Error
Error: 2012-09-21 14:53:05.54
Code: 0xC02020E8
Source: Export MyExportQuery to Excel Destination - Query [73]
Description: Opening a rowset for "Query" failed. Check that the object exists in the database. End Error
Error: 2012-09-21 14:53:05.54
Code: 0xC004701A
Source: Export MyExportQuery to Excel SSIS.Pipeline
Description: component "Destination - Query" (73) failed the pre-execute phase and returned error code 0xC02020E8. End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 2:53:03 PM
Finished: 2:53:05 PM
Elapsed: 2.282 seconds. The package execution failed. The step failed.
编辑:SSIS 配置为在 32 位模式下运行