ODBC 不断提示输入密码

发布于 2024-08-28 03:21:04 字数 397 浏览 4 评论 0原文

我有一个在 Access 2003 中构建的应用程序,它使用系统 DSN ODBC 连接到 SQL Server。 ODBC 使用 SQL 身份验证。当应用程序启动时,系统会提示用户在数据库中进行身份验证。

我在同一域中设置了另一台计算机,并安装了 Access 2007。我使用与访问具有 Access 2003 的计算机相同的凭据进行登录。

我将应用程序转换为 Access 2007 格式,一切正常。但是,当其他用户尝试使用该应用程序时,每次访问表时都会提示他们输入数据库密码。我认为这是我的 ODBC 的问题,并确认我的计算机和用户的计算机上的连接设置方式相同。

这是有趣的部分,当用户登录我的机器时,它每次都开始提示输入密码。当我登录到用户的计算机时,该应用程序运行良好。

有人有什么想法吗?感谢所有帮助!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老街孤人 2024-09-04 03:21:04

请务必使用系统 DSN,而不是用户 DSN。由于选项卡是并排的,因此很容易创建错误的选项卡。

确保系统 DSN 已选择 SQL Server 身份验证,并且您已设置登录 ID 和密码。

用户 DSN 仅对创建它的用户可见。系统 DSN 可供所有用户和 Windows 服务使用。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文