tSQL スカラー値関数があります
ALTER FUNCTION [dbo].[MyDB_GetJobId]
(
)
RETURNS [uniqueidentifier]
vJobId
その結果は、として宣言された SSIS ユーザー変数に入る必要がありますString
。SqlStatementSource はEXEC ? = dbo.MyDB_GetJobId()
; 結果セットは次のとおりです: Result Name
: 0; Variable Name
: User::vJobId
.
動作しません、エラーメッセージは次のとおりです
"EXEC ? = dbo.MyDB_GetJobId()" failed with the following error: "No value given for one or more required parameters.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
接続は問題ありません (プレーンな SQL リクエストは正常に実行されます)、入力パラメーターはありません... 助けていただけますか? ありがとう。