Unable to select a system DSN when adding a data connection to Server Explorer

橙三吉。 提交于 2019-12-12 23:38:06

问题


In Visual Studio 2010, attempting to use the Server Explorer to add a data connection.

From the Change Data Source screen I select Microsoft ODBC Data Source which moves me to the Add Connection screen. However, the dropdown for Use user or system data source name: only contains my user DSNs. My system DSNs are not shown.

I'm running on Windows 7, 64 bit and ran Visual Studio as administrator. The missing system DSNs use the SQL Server Native Client 10.0, but an equivalent user DSN using the same driver appears in the list.


回答1:


You say you are on a 64bit machine, Visual Studio used to be 32 bit only and thus would only see 32 bit DSN's. You could try running the 32 bit version of the ODBC manager and creating/checking your DSN exists in there. The path is usally something like C:\Windows\SysWOW64\odbcad32.exe



来源:https://stackoverflow.com/questions/8422385/unable-to-select-a-system-dsn-when-adding-a-data-connection-to-server-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!