2013-02-12 133 views
0

讓我們考慮一個運行此命令我得到錯誤的通過ODBC驅動程序連接從DOTNET的SQL Server

ERROR [08001] [Microsoft][SQL Server Native Client 10.0]Registry information is corrupt or missing. Make sure the provider installed and registered correctly. 

ERROR [08001] [Microsoft][SQL Server Native Client 10.0]Client unable to establish connection 

ERROR [08001] [Microsoft][SQL Server Native Client 10.0]A network-related or instance-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 if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. 
2013-02-12 12:17:00,247 

ERROR  
Error at Executenonquery:ExecuteNonQuery: CommandText property has not been initialized 

,同時通過ODBC驅動程序

"Driver={SQL Server Native Client 10.0};Server=xxx.xx.xx.xx,xxxx;Database=mydata;Uid=xx;Pwd=xxxxxx;" 

連接的SQL Server下面的連接字符串我在該機器中也啓用了遠程連接。

在當前機器:視覺工作室已過期和SQL Server 2008 R2未安裝。

我有什麼,以解決這一問題

等待您的答覆,現在做..

更新:

,而我在登記管理數據源[ODBC]在系統驅動程序我得到的答覆如下:

Connection failed 

sqlsatte:'08001' 

Sql Server Error:27 

Registry information is corrupt or missing. 
+0

操作系統事件日誌告訴你什麼? – 2013-02-12 06:57:29

+0

@ ling.s我在哪裏可以找到它? – GowthamanSS 2013-02-12 07:00:07

回答

0

在我看來,您的SQL Native Client安裝可能存在問題。查看安裝/取消阻止SQL Server Native Client上的MSDN documentation以及應該能夠找到安裝文件的位置。卸載並重新安裝它可能是值得的。

一旦你確定它安裝好,使用ODBC管理工具(假設你使用XP)設置和測試ODBC連接。

ODBC Admin window showing SQL Native Client 10 installation

相關問題