需要远程创建到 SQl 服务器的 ODBC 连接
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在每台计算机上以完全相同的方式命名 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.
系统 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.