gpt4 book ai didi

stored-procedures - 无法从 SQL 命令的参数中检索目标列描述

转载 作者:行者123 更新时间:2023-12-04 08:59:32 25 4
gpt4 key购买 nike

我正在尝试将 SSIS 包从 2008 年升级到 2012 年,但出现以下错误。

Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "The metadata could not be determined because statement 'EXEC master.dbo.xp_logevent @ErrorCode, @Message, error' in procedure 'DebugPrint' invokes an extended stored procedure.".

Error: Unable to retrieve destination column descriptions from the parameters of the SQL command.



基本上,我们有一个 OLE DB 命令来调用一个调用多个(嵌套)存储过程的存储过程,其中一个是调用 master.dbo.xp_logevent 的 DebugPrint。有什么办法解决它吗?它适用于 SSIS 2008。

谢谢

最佳答案

在调用 proc 并在那里设置元数据时,您可以尝试使用“with result sets”。

例子 :

EXEC dbo.proc  
WITH RESULT SETS (
ID INT
,Col2 VARCHAR)

关于stored-procedures - 无法从 SQL 命令的参数中检索目标列描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17560234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com