SQL Server代理作业失败 - “无法建立[到SSAS实例]的连接。请确保服务器正在运行

问题描述 投票:0回答:1

当我尝试执行SQL Server代理作业(在SSAS表格上删除数据库)时,我收到以下错误:

[136] Job Test reported: Microsoft.AnalysisServices.Xmla.ConnectionException: A connection cannot be made. Ensure that the server is running. ---> 
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:2383
   at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
   at Microsoft.AnalysisServices.Xmla.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
   --- End of inner exception stack trace ---
   at Microsoft.AnalysisServices.Xmla.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean& isSessionTokenNeeded)
   at Microsoft.AnalysisServices.Xmla.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
   at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.Connect()
   at OlapEvent(SCH_STEP* pStep, SUBSYSTEM* pSubSystem, SUBSYSTEMPARAMS* pSubSystemParams, Boolean fQueryFlag)

我的问题是:为什么作业在使用SQL Agent作业执行时不起作用,并且在我手动删除相同的数据库时起作用?我该怎么做才能解决这个问题?

sql-server ssas
1个回答
0
投票

对于SQL Server代理和SSAS之间的连接,工作执行的步骤应该将服务器实例称为\。

© www.soinside.com 2019 - 2024. All rights reserved.