需要远程创建到 SQl 服务器的 ODBC 连接

发布于 2024-08-28 16:51:44 字数 183 浏览 2 评论 0原文

我有一个 Access 2007 数据库,其中有一个链接到 SQL 服务器的表。我需要将此版本的数据库推广给不同州的大约 10 个人。为此,他们需要与安装在其计算机上的 SQL 服务器建立 ODBC 连接。我正在寻找一种远程执行此操作的方法。要么通过数据库本身中的 VBA,要么通过链接到其快捷方式的批处理文件......我对想法持开放态度......

I have an Access 2007 database with a table in it that is linked to a SQL server. I need to roll this version of the database out to approximately 10 people in different states. In order to do that, they need an ODBC connection to the SQL server installed on their machines. I am looking for a way to do this remotely. Either through VBA in the database itself or perhaps a Batch file linked to their shortcut....I am open to ideas....

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

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

发布评论

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

评论(2

时光病人 2024-09-04 16:51:45

如果您在每台计算机上以完全相同的方式命名 SQL Server 实例和数据库,则应该能够在测试台计算机上创建 DSN,使用它来链接表,然后将其转换为 DSN-less 连接 并分发它。

If you're naming the SQL Server instance and database exactly the same way on each machine, you should be able to create a DSN on your testbed machine, use it to link tables, then convert it to a DSN-less connection and distribute that.

得不到的就毁灭 2024-09-04 16:51:45

系统 ODBC 通过注册表进行配置 - 请参阅 HKLM\SOFTWARE\ODBC\ODBC.INI。您将需要一个与 DSN 名称匹配的密钥以及该密钥的 ODBC 数据源中的条目。

system ODBC is configured via the registry -- see HKLM\SOFTWARE\ODBC\ODBC.INI. You will need a key to match the DSN name and an entry in ODBC Data Sources for the key.

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