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

时间:2018-03-01 00:04:54

标签: sql-server ssas

当我尝试执行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执行作业时为什么不起作用 代理作业,当我手动删除相同的数据库时工作?什么 我应该怎么做才能解决问题?

1 个答案:

答案 0 :(得分:0)

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