:點(diǎn)晴MIS系統(tǒng)數(shù)據(jù)庫(kù)連接參數(shù)錯(cuò)誤,請(qǐng)重新安裝,出現(xiàn)“無(wú)法連接服務(wù)器-與網(wǎng)絡(luò)有關(guān)或與實(shí)例有關(guān)的錯(cuò)誤”?
Cannot connect to 108.163.224.173. 無(wú)法連接到108.163.224.173。
A network-related or instance-specific error occurred while establishing a connection to SQL Server. 建立與SQL Server的連接時(shí)發(fā)生與網(wǎng)絡(luò)相關(guān)或特定于實(shí)例的錯(cuò)誤。
The server was not found or was not accessible. 服務(wù)器未找到或無(wú)法訪問(wèn)。
Verify that the instance name is correct and that SQL Server is configured to allow remote connections. 驗(yàn)證實(shí)例名稱(chēng)正確,并且已將SQL Server配置為允許遠(yuǎn)程連接。
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1326) (提供者:命名管道提供程序,錯(cuò)誤:40-無(wú)法打開(kāi)與SQL Server的連接)(Microsoft SQL Server,錯(cuò)誤:1326)
解決方案:
點(diǎn)晴OA安裝之SQL_Server參數(shù)配置及優(yōu)化操作指引[15029]
http://13238.oa22.cn
這一步最關(guān)鍵:
將下圖紅色圈圈內(nèi)選項(xiàng)啟用:
說(shuō)明:上面中的Shared Memory、TCP/IP和Named Pipes三項(xiàng)都務(wù)必全部啟用,VIA切勿啟用,否則一定會(huì)導(dǎo)致登錄點(diǎn)晴OA緩慢無(wú)比、甚至無(wú)法登錄!
按照以上教程設(shè)置即可,更多解決方法參考:
Make sure your database engine is configured to accept remote connections : 確保您的數(shù)據(jù)庫(kù)引擎配置為接受遠(yuǎn)程連接 :
Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration 開(kāi)始>所有程序> SQL Server 2005>配置工具> SQL Server外圍應(yīng)用配置器
Click on Surface Area Configuration for Services and Connections 單擊用于服務(wù)和連接的外圍應(yīng)用配置
select the instance that is having a problem > Database Engine > Remote Connections 選擇有問(wèn)題的實(shí)例>數(shù)據(jù)庫(kù)引擎>遠(yuǎn)程連接
Enable local and remote connections 啟用本地和遠(yuǎn)程連接
Restart instance 重新啟動(dòng)實(shí)例
You may need to create an exception on the firewall for the SQL Server instance and port you are using: 您可能需要在防火墻上為正在使用的SQL Server實(shí)例和端口創(chuàng)建一個(gè)例外 :
from FIX : ERROR : Could not open a connection to SQL Server : 從FIX:錯(cuò)誤:無(wú)法打開(kāi)與SQL Server的連接 :
Start > Run > Firewall.cpl 開(kāi)始>運(yùn)行> Firewall.cpl
Click on exceptions tab 點(diǎn)擊例外標(biāo)簽
Add sqlservr.exe (typically located in C:\\Program Files (x86)\\Microsoft SQL Server\\MSSQL.x\\MSSQL\\Bin
, check your installs for the actual folder path) and port (default is 1433
) 添加sqlservr.exe(通常位于C:\\Program Files (x86)\\Microsoft SQL Server\\MSSQL.x\\MSSQL\\Bin
,檢查安裝的實(shí)際文件夾路徑)和端口(默認(rèn)為1433
)
Check your connection string as well 還要檢查您的連接字符串
Check if your SQL server services is up and running properly:
檢查您的SQL Server服務(wù)是否已啟動(dòng)并正常運(yùn)行:
In addition, ensure that your remote server is in the same network .
此外,請(qǐng)確保您的遠(yuǎn)程服務(wù)器在同一網(wǎng)絡(luò)中 。
Run sqlcmd -L
to ascertain if your server is included in your network list.
運(yùn)行sqlcmd -L
以確定您的服務(wù)器是否包含在網(wǎng)絡(luò)列表中。
Go to All Programs > Microsoft SQL Server 2008 > Configuration Tools > SQL Server Configuration Manager > SQL Server Services
轉(zhuǎn)到所有程序> Microsoft SQL Server 2008>配置工具> SQL Server配置管理器> SQL Server服務(wù)
Check to make sure SQL Server service status is Running.
檢查以確保SQL Server服務(wù)狀態(tài)為“正在運(yùn)行”。
Enable TCP/IP in SQL Server Configuration
在SQL Server配置中啟用TCP / IP
When two or more SQL Servers are connected across network they do all communication using TCP/IP.
當(dāng)通過(guò)網(wǎng)絡(luò)連接兩個(gè)或多個(gè)SQL Server時(shí),它們將使用TCP / IP進(jìn)行所有通信。
The default port of SQL Server installation is 1433. This port can be changed through SQL Server Configuration Manager.
SQL Server安裝的默認(rèn)端口為1433??梢酝ㄟ^(guò)SQL Server配置管理器更改此端口。
TCP/IP should be enabled for SQL Server to be connected.
應(yīng)該為要連接的SQL Server啟用TCP / IP。
You must restart SQL Server Services for all the changes to take effect.
您必須重新啟動(dòng)SQL Server服務(wù),所有更改才能生效。
Right click and go to menu properties to select location where default port of SQL Server can be changed.
右鍵單擊并轉(zhuǎn)到菜單屬性,以選擇可以更改SQL Server默認(rèn)端口的位置。
Go to All Programs >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> select TCP/IP
轉(zhuǎn)到所有程序>> Microsoft SQL Server 2008 >>配置工具>> SQL Server配置管理器>>選擇TCP / IP
Right Click on TCP/IP >> Click on Enable
右鍵單擊TCP / IP >>單擊啟用
#3樓
I got Solution for me : 我為我找到了解決方案:
Open "SQL Server Configuration Manager"
打開(kāi)“ SQL Server配置管理器”
Now Click on "SQL Server Network Configuration" and Click on "Protocols for Name "
現(xiàn)在,單擊“ SQL Server網(wǎng)絡(luò)配置”,然后單擊“ 名稱(chēng)協(xié)議”
Right Click on "TCP/IP" (make sure it is Enabled) Click on Properties
右鍵單擊“ TCP / IP”(確保已啟用),單擊“屬性”。
Now select "IP Addresses" Tab -and- Go to the last entry "IP All"
現(xiàn)在,選擇“ IP地址”選項(xiàng)卡-并且-轉(zhuǎn)到最后一個(gè)條目“ IP全部”
Enter "TCP Port" 1433.
輸入“ TCP端口” 1433。
Now Restart "SQL Server .Name."
現(xiàn)在, 重新啟動(dòng) “ SQL Server .Name”。
using "services.msc" (winKey + r)
使用“ services.msc”(winKey + r)
It Will Work...
它會(huì)工作...
#4樓
如果以上解決方案都不起作用(對(duì)我而言沒(méi)有任何幫助),則只需重新啟動(dòng)計(jì)算機(jī),您就可以連接到sql服務(wù)器(本地主機(jī))。
#5樓
I have to run SQL Server Browser service into SQL Server Configuration Manager .
我必須將SQL Server瀏覽器服務(wù)運(yùn)行到SQL Server配置管理器中 。 Installation can't discover newly created service without this. 沒(méi)有此安裝程序?qū)o(wú)法發(fā)現(xiàn)新創(chuàng)建的服務(wù)。
#6樓
I am solving that problem by opening Services then start running Sql Server (Sqlexpress) service.
我通過(guò)打開(kāi)“ 服務(wù)”來(lái)解決該問(wèn)題,然后開(kāi)始運(yùn)行Sql Server(Sqlexpress)服務(wù)。
該文章在 2023/12/5 11:40:42 編輯過(guò)