Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 通过dtexec调用时SSIS脚本任务不工作_Sql Server_Ssis_Dtexec - Fatal编程技术网

Sql server 通过dtexec调用时SSIS脚本任务不工作

Sql server 通过dtexec调用时SSIS脚本任务不工作,sql-server,ssis,dtexec,Sql Server,Ssis,Dtexec,我目前正在使用visual studio 2015,其中我的脚本任务运行良好。当我尝试使用命令使用DTEXECutil运行同一个包时 C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe" /f "filepath" 我犯了一个错误 脚本任务“ST_7432393ecf7a4af3906ba19425aeb245”使用的14.0版脚本在此版本的Integration Services中不受支持。要运行包,请使

我目前正在使用visual studio 2015,其中我的脚本任务运行良好。当我尝试使用命令使用
DTEXEC
util运行同一个包时

C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe"  /f "filepath" 
我犯了一个错误

脚本任务“ST_7432393ecf7a4af3906ba19425aeb245”使用的14.0版脚本在此版本的Integration Services中不受支持。要运行包,请使用脚本任务创建新的VSTA脚本。在大多数情况下,当您在%SQL\u PRODUCT\u SHORT\u NAME%Integration Services中打开SQL Server Integration Services包时,脚本会自动转换为使用受支持的版本。位于Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj,IDTSInfoEvents事件)”

注:

“C:\Program Files(x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe” /f“文件路径”

120是指SQL Server 2014,而脚本版本14.0是指SQL Server 2016。 您的SSI可能是使用错误的TargetServerVersion生成的。请检查项目的属性并将其更改为正确的版本


编辑:或者,如果您使用的是SQL Server 2016,则需要将路径更改为正确的版本DTExec.exe。如果您是在默认路径中安装的,则将其更改为120到130应该可以工作。

Tks获取答案,但我仍然会在一个错误中声明——若要在sql server data tools之外运行ssis包,您必须安装integration Services的标准版“@Jody T能否请您帮助Medifficut说出,但您似乎没有安装正确版本的ssis。您可以通过sql server Configuration Manager.tks@JodyT验证这一点
 My SSDT Version is 14.061021.0
 Sql server version 2016
 Visual studio version 2015