0
我在SQL Server上有一個SSAS模型,我試圖從VBA查詢。這在前幾天工作正常,但遠程機器上的管理員密碼最近發生了變化。現在我收到錯誤消息:「運行時錯誤-2147467259(80004005)對等體過早關閉連接」。VBA查詢SSAS模型 - 對等過早關閉連接
我試過重建和重新部署我的SSAS模型無濟於事。任何想法,爲什麼我得到這個錯誤,以及如何解決它?
謝謝!
Dim oConn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim oSht As Worksheet
Dim sql As String
Set oSht = Worksheets("modelcq")
Set oConn = New ADODB.Connection
oConn.ConnectionString = "Provider=MSOLAP;Data Source=dc2k8housql;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=NVO_CQ_V1;"
oConn.Open 'error occurs here!
Debug.Print oConn.State