TGH*_*TGH 7 c# sql-server ssis
我试图使用C#以编程方式执行SSIS包.
Application app = new Application();
Package package = app.LoadPackage(pkgFullPath, null);
package.Execute();
Run Code Online (Sandbox Code Playgroud)
我收到一个错误说:
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : To run a SSIS package outside of SQL Server Data Tools you must install Conditional Split of Integration Services or higher.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : To run a SSIS package outside of SQL Server Data Tools you must install Lookup of Integration Services or higher.
Run Code Online (Sandbox Code Playgroud)
我在Visual Studio 2010中使用SSIS,但是在VS 2012中运行nunit测试执行C#代码(运行.Net 4.0)
如果我通过调试(按F5)启动它,则在VS 2010中的SSIS项目内运行正常,但如果我尝试使用命令行中的dtexec运行它,它会失败并出现相同的错误(32位和64位同样失败)版本的dtexec).如果我使用ctrl + F5从Visual Studio内部启动它也会失败并出现相同的错误(无需调试)
我在网上发现文章表明它与64位v 32位问题有关,但在运行两个版本的dtexec时我看到同样的错误.我使用的是dtexec版本11.0.2100.60,它与VS 2010中的SQL Server Integration Services Designer版本相匹配.
如果我运行一个没有条件拆分和查找的简单包,我不会收到错误.我是否必须安装额外的东西才能在Visual Studio外部运行?
有任何想法吗?
继续我上面的评论,如果服务安装正确,那么可能是执行包的帐户的权限问题(我看到您正在使用 SQL 2012)。
请参阅http://technet.microsoft.com/en-us/library/hh213130.aspx
希望能帮助到你。