使用 Microsoft Access DSN 时,是否只需将数据库连接字符串替换为 DSN 的路径?
我继承了一个带有 Access 后端的 Web 应用程序(是的,我知道)。
我需要尽快将这个东西部署到共享托管提供商。 不幸的是,这并不像我想象的那么容易,因为主机往往会锁定对 Access 数据库 (AFAICT) 的访问。
我与 GoDaddy 有一个共享帐户 - 我已启用 Access 数据库使用,并创建了 DSN。
应用程序中散布着对数据库连接字符串的引用。 使用 DSN 是否只需将连接字符串更改为 DSN 的路径即可?
非常感谢任何帮助。
I have inherited a web application with an Access backend (yes I know).
I need to get this thing deployed asap to a shared hosting provider. Unfortunately, it's not as easy as I imagined as hosts tend to lock down access to Access databases (AFAICT).
I have a shared account with GoDaddy - I have enabled Access database use, and created a DSN.
The application has references to the database connection string littered throughout it. Is using DSNs simply a matter of changing the connection string to be the path of the DSNs?
Any help much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自从我这样做以来已经有一段时间了,但是您应该能够将连接字符串更改为 DSN=MYDSNNAme
不过,我会先在本地尝试。
显然,如果您要遇到这个麻烦,请用变量替换每次出现的情况,因此如果您需要再次执行此操作会更容易:)
Been a while since I did this, but you should just be able to change the connection string to DSN=MYDSNNAme
I would try it locally first though.
Obviously if you are going to go to this trouble, replace each occurance with a variable, so if you need to do it again it will be easier :)