ODBC continually prompts for password

瘦欲@ 提交于 2019-12-23 20:10:45

问题


I have an application built in Access 2003 that uses a system DSN ODBC to connect to a SQL Server. The ODBC uses SQL authentication. When the application is started, the user is prompted to authenticate into the database.

I have another computer set up within the same domain that has Access 2007 installed on it. I log in using the same credentials that I use to get on the machine that has Access 2003.

I converted my application to Access 2007 format and everything works fine. However, when other users try to use the application, they are prompted to enter the database password every time a table is accessed. Thinking it was a problem with my ODBC, I confirmed that the connections were set up the same way on both of my machines, and the user's machine.

Here is the interesting part, when the user logged into my machine, it started prompting for the password every time. When I logged into the user's machine, the application worked fine.

Anyone have any ideas? All help is appreciated!


回答1:


Be sure to use a System DSN, not a User DSN. It's easy to create the wrong one since the tabs are side by side.

Make sure that the System DSN has SQL Server authentication picked and you have the login id and password set.

A User DSN is only visible to the user that creates it. A System DSN is available to all users and Windows services.



来源:https://stackoverflow.com/questions/2601034/odbc-continually-prompts-for-password

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