問題:
SPI在重裝或更改數(shù)據(jù)庫路徑的時候磺平,提示如下信息
A network-relatedor instance-specific error occurred while establishingaconnection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not openaconnection to SQL Server)
解決:
其中一個可能報錯的原因是因為windows系統(tǒng)備份了一份intools.ini文件俱济,不去讀取SPI安裝路徑那個。一般是因為重裝/升級/修改數(shù)據(jù)庫服務(wù)器造成的。
刪除C:\Users\你的用戶名\AppData\Local\VirtualStore\Program Files (x86)\SmartPlant\Instrumentation 刪除這個路徑下的Intools.ini重新登錄SPI即可恢復(fù)正常
當(dāng)然還可能是其他的網(wǎng)絡(luò)配置問題造成的,例如配置ODBC使用的是機器名,機器名要通過DNS解析暇番,本機配置的DNS是否能解析機器名和IP映射關(guān)系?以及網(wǎng)絡(luò)配置是不是有改動了思喊,要清空下DNS壁酬?或者機器名重名了?