2013-12-18 77 views
0

請幫助我,我有SQL Server 2000的服務器上安裝,我嘗試設置此連接字符串SQL Server 2000的連接失敗提供商

Data Source=SQL-SRV;Initial Catalog=MyDB;User Id=sa;Password=***; 
當我嘗試啓動方面,我有這樣的消息

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)

請注意,我可以從odbc訪問它

回答

0

是一個連接問題。

從運行的應用程序,在命令行(與以管理員身份運行)試試這個

月1日:平SQL-SRV

如果你看到TTL已過期的味精,是網絡問題呼叫LAN管理員

第二:遠程登錄SQL-SRV 1433

你的命令行窗口將自動清零,如果成功,如果失敗了,看到味精「connectin ......」 檢查SQL服務器正在運行,防火牆的配置。

+0

telnet SQL-SRV 1433失敗 我能做什麼 – user2681731

+0

防火牆被禁用 – user2681731

+0

ODBC的工作原理是什麼?它可以是一個提供商的問題檢查連接刺(sqlcli10,最後2K兼容性)http://www.connectionstrings.com/sql-server-2000/ –