當我嘗試SQLCMD運行(從命令提示符)我得到以下錯誤:試圖運行sqlcmd失敗,無法建立連接?
HResult 0x2, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server [2]. Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or in stance-specific error has occurred while establishing a connection to SQL Server . Server is not found or not accessible. Check if instance name is correct and i f SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.. Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired.
不知道爲什麼出現這種情況?我可以從我的asp.net網站(本地運行,如數據庫)連接到sql服務器,但sqlcmd無法連接。
您是否提供了憑據? – thomaux 2010-10-25 07:19:37
我該怎麼做? – tweetypi 2010-10-25 08:41:51
您可以向我們展示您正在使用的SQLCMD參數嗎? – 2010-10-25 09:07:16