Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵兆

假設您在 2019 或 2017 Microsoft SQL Server SqlLocalDB 功能。 在這種情況下,您無法正確啟動或連接到 SqlLocalDB 的共用實例。

解決方案

此問題已修正下列累積更新SQL Server:

每個新的累積更新SQL Server包含上一個建立中所有的修復程式和安全性修正程式。 我們建議您針對您的版本安裝最新SQL Server:

2019 年 SQL Server累積更新

2017 年 SQL Server累積更新

狀態

Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。

其他相關資訊

當您嘗試連接到共用實例的共用實例時,LocalDB。 

REM建立命名實例 FOO

SqlLocalDB.exe建立 FOO

REM 從提升的命令提示符執行下列命令

REM 共用實例 FOO 為 FOOSHARED

SqlLocalDB.exe FOO FOOSHARED

當您執行下列命令時,您可能會收到錯誤訊息,如下所示:

SqlCmd.exe -S (localdb) \.\FOOSHARED -E

Sqlcmd:錯誤:適用于 SQL Server 的 Microsoft ODBC 驅動程式 17:已命名的管道提供者:無法開啟SQL Server [2]。 .

Sqlcmd:錯誤:適用于 SQL Server 的 Microsoft ODBC 驅動程式 17:登入超時已過期。

Sqlcmd:錯誤:microsoft ODBC driver 17 for SQL Server:建立與網路相關的或實例特定的錯誤時,已SQL Server。 找不到伺服器或無法進行訪問。 檢查實例名稱是否正確,SQL Server是否已配置為允許遠端連線。 詳細資訊請參閱線上SQL Server書籍。。

參考

瞭解 Microsoft用來描述軟體更新的術語。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×