0

我的项目正在使用 netnamedpipe 服务对数据库执行 CRUD 操作并访问数据库对象。问题:当我在 SSIS 中使用 NetNamedpipe 服务并使用 SSIS 配置管理器中的 Localhost 凭据(使用 Windows 身份验证)通过 SQL 服务器代理运行作业时,作业正在成功执行并按预期对表执行 CRUD 操作。但是,当我使用再次处于 Windows 身份验证模式的 SSIS 代理用户运行相同的作业时,它给了我以下附加错误。

Executed as user: {domain\Proxyuser} 
. ...System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)
     at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)
     at System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key)
     at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
     at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
     at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    Exception rethrown at [0]:
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
     at System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout)
     at ST_4afb40bbfa44442385f42de501c36110.csproj.ScriptMain.Execute()

包执行成功f... 步骤成功。

我们是否有任何单独的方式来使用 SSIS 代理用户使用 WCF/netnamedpipe 服务?

注意:代理用户具有访问必要数据库对象以进行 CRUD 操作的登录凭据。

请帮助我解决这个问题,因为我在过去几个月面临这个问题并使用 SQL server Agent 角色运行作业,这在 PROD 环境中是不可取的。

4

0 回答 0