0

Having some SSIS permissions issue.

I am calling the SSIS package in my .net console application with:

Package pkg = app.LoadFromSqlServer(packagePath, serverName, serverUsername, serverPassword, dtsEvents);

It is working when manually running it using the windows accout, but fails with the above call in my console application.

Shouldn't it work with the sql server sa account?

4

2 回答 2

1

There are plenty of reasons for it to fail when run under different account, to avoid trying to fix it blindly, you should get the error information. It looks like you are supplying dtsEvent parameter - so your app should get the error message. Another way to get it to examine package.Error collection after execution, or enable SSIS logging and check the error log.

Once you have the error message, update the post :)

There is also a KB article dedicated to troubleshooting such errors: http://support.microsoft.com/kb/918760/.

But it just lists lots of possible error causes - to find out your issue, you need to get the error message first.

于 2008-12-16T19:19:35.010 回答
0

当您有使用链接服务器访问不同服务器上的数据库的 sql 查询时,通常会发生这种情况。

于 2009-03-17T07:44:52.427 回答