Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.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
使用powershell在asp.net中运行SSIS包_Asp.net_Powershell_Ssis_Package - Fatal编程技术网

使用powershell在asp.net中运行SSIS包

使用powershell在asp.net中运行SSIS包,asp.net,powershell,ssis,package,Asp.net,Powershell,Ssis,Package,谁能告诉我如何在asp.net服务器上运行带powershell的SSIS包。请注意,我还需要指定配置文件路径 var processStartInfo = new ProcessStartInfo { Arguments = "dtexec /F " + "\"" + pkgPath + packageName +"\"", FileName = "C:\\Windows\\Syst

谁能告诉我如何在asp.net服务器上运行带powershell的SSIS包。请注意,我还需要指定配置文件路径

var processStartInfo = new ProcessStartInfo
                {
                    Arguments = "dtexec /F " + "\"" + pkgPath + packageName +"\"",
                    FileName = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
                };

                Process process = Process.Start(processStartInfo);
如何在上述代码中指定配置文件路径。

请参阅,特别是选项3-使用SMO执行SQL代理作业。我不知道当前关于直接从ASP.NET中生成任意外部进程的想法是什么,这对我来说是一种安全风险。跳过DTEXEC,只需使用