問題描述
今天我去連接到我的本地?cái)?shù)據(jù)庫(kù),但由于未知原因我無(wú)法再連接.我輸入(本地)并像往常一樣使用 Windows 身份驗(yàn)證,但出現(xiàn)此錯(cuò)誤.
Today I went to connect to my local database but I cannot connect anymore for unknown reasons. I typed in (local) and used Windows authentication like I always do yet I get this error.
無(wú)法連接到本地主機(jī).
發(fā)生與網(wǎng)絡(luò)相關(guān)或特定于實(shí)例的錯(cuò)誤建立到 SQL 的連接服務(wù)器.未找到服務(wù)器或無(wú)法訪問.驗(yàn)證實(shí)例名稱正確且該 SQL服務(wù)器配置為允許遠(yuǎn)程連接.(提供者:命名管道提供程序,錯(cuò)誤:40 - 無(wú)法打開連接到 SQL Server) (.NetSqlClient 數(shù)據(jù)提供程序)
A network-related or instance-specific error occurred while establishing a connection 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 open a connection to SQL Server) (.Net SqlClient Data Provider)
推薦答案
SQL Server 服務(wù)是否正在運(yùn)行?要進(jìn)行檢查,請(qǐng)右鍵單擊我的電腦"并選擇管理..."從窗口左側(cè)的樹中選擇服務(wù)和應(yīng)用程序",然后選擇服務(wù)".查找SQL Server"服務(wù)并查看它是否處于已啟動(dòng)"狀態(tài).如果沒有,請(qǐng)右鍵單擊該服務(wù)并選擇開始".
Is the SQL Server service running? To check, right-click on "My Computer" and choose "Manage..." From the tree on the left side of the window, choose "Services and Applications", then "Services". Look for the "SQL Server" service and see if it is in the "Started" status. If not, right-click on the service and choose "Start".
這篇關(guān)于無(wú)法再連接到本地 SQL Server 2008 數(shù)據(jù)庫(kù)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!