Hi,
I am executing an SSIS package using a c# application. this SSIS packages extracts about 700K-2M records from a database and outputs to text or excel files. the application allows the user to execute the package on demand.
This application uses these dlls:
Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.Management.IntegrationServices
Microsoft.SqlServer.Management.Sdk.Sfc
Microsoft.SqlServer.Smo
The package runs perfectly if the app is run under my login but fails when run with the user's login. (error message pasted below)
My hunch is that i need to grant execute permission on one or more of these dlls to the user account but i don't quite know how or where. Or is it some dcomcnfg permission?
Any help would be most welcome.
Regards
Habib
---------------------- Execution error ------------------
Failed to connect to server .\n at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
at Microsoft.SqlServer.Management.Common.ConnectionManager.PoolConnect()
at Microsoft.SqlServer.Management.Common.ConnectionManager.get_ServerVersion()
at Microsoft.SqlServer.Management.Common.ServerConnection.get_TrueName()
at Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices.Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomainLite.get_DomainInstanceName()
at Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices.Key.GetUrnFragment()
at Microsoft.SqlServer.Management.Sdk.Sfc.SfcKeyChain.ToString()
at Microsoft.SqlServer.Management.Sdk.Sfc.SfcKeyChain.Microsoft.SqlServer.Management.Sdk.Sfc.IUrn.get_XPathExpression()
at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectInfo(Object ci, RequestObjectInfo req)
at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetObjectInfo(Object connectionInfo, RequestObjectInfo requestObjectInfo)
at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, RequestObjectInfo requestObjectInfo)
at Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance.GetSupportedResultTypes(ISfcConnection connection, Urn urn)
at Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance.Initialize()
at Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance.MarkRootAsConnected()
at Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices..ctor(SqlConnection sqlConnection)
at HSalimCo.Pivots.DataExport.bkworker_DoWork(Object sender, DoWorkEventArgs e)
----------------------------------------