Sql server 使用存储过程执行SSIS包

Sql server 使用存储过程执行SSIS包,sql-server,stored-procedures,ssis,Sql Server,Stored Procedures,Ssis,我想使用存储过程执行SSIS包,我正在使用SQL Server 2014,我的SP出现错误 代码: 我得到一个错误: sg 201,第16级,第4状态,程序示例包,第0行 过程或函数“ExamplePackage”需要未提供的参数“@output\u execution\u id” SP调用的示例: Exec ExamplePackage 带参数的调用过程 DECLARE @output_execution_id bigint EXEC ExamplePackage @output_execu

我想使用存储过程执行SSIS包,我正在使用SQL Server 2014,我的SP出现错误

代码:

我得到一个错误:

sg 201,第16级,第4状态,程序示例包,第0行
过程或函数“ExamplePackage”需要未提供的参数“@output\u execution\u id”

SP调用的示例:

Exec ExamplePackage

带参数的调用过程

DECLARE @output_execution_id bigint
EXEC ExamplePackage @output_execution_id OUTPUT
在您的过程中,您必须首先调用create_execution来获取执行ID。 然后设置参数并最终使用该执行ID调用start_execution


此处学习

同时发布如何调用ExamplePackage SP。获取错误,如Msg 911,级别16,状态4,过程执行\u ssis\u package\u第6行数据库“SSIDB”不存在。确保输入的名称正确。听起来可能是
ssisdb
数据库不存在。如果我是你,我会检查一下。Msg 137,级别15,状态2,第2行必须声明标量变量“@output\u execution\u id”。EXEC ExamplePackage@output\u execution\u id output get error是的,你“必须声明标量变量@output\u execution\u id”:)Msg 911,级别16,状态4,过程ExamplePackage,第25行数据库“SSIDB”不存在。请确保输入的名称正确。获取类似这样的错误
DECLARE @output_execution_id bigint
EXEC ExamplePackage @output_execution_id OUTPUT