gpt4 book ai didi

sql-server-2008 - 如何在 SSIS 的执行 SQL 任务中使用参数映射?

转载 作者:行者123 更新时间:2023-12-03 18:26:50 35 4
gpt4 key购买 nike

我正在尝试检索 Key 的值从 SSIS 中带有简单 select 语句的表到 Execute SQL Task .但是没有运气弄清楚这个错误。

我使用了一个字符串数据类型的输入变量,并在 Execute SQL Task 的参数映射中使用了这个变量。 .

Executing the query "SELECT cast([Key] as Int) FROM Table where column = ?" failed with the following error: "An error occurred while extracting the result into a variable of type (DBTYPE_I4)". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.



注意: Key 的数据类型列是 tinyint

最佳答案

当参数的默认数据类型保持为“LONG”而不是任何必要的数据类型时,会出现此消息......在您的情况下,这应该是“BYTE”

parameter mapping

关于sql-server-2008 - 如何在 SSIS 的执行 SQL 任务中使用参数映射?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11091583/

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