我可以将位置免费连接到msaccess数据库 [英] can i make location free conntection to msaccess database

查看:102
本文介绍了我可以将位置免费连接到msaccess数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以对msaccess数据库进行无位置连接

can i make location free conntection to msaccess database

推荐答案

你不能 - 连接到数据库(任何类型)你必须识别数据库和/或您想要使用的数据库引擎。

对于直接访问文件,您必须指定要连接的文件。对于SQL,您可以指定所需的SQL Sever实例,然后按名称连接到DB - 在这种意义上,服务实例是位置。
You can''t - to connect to a database (of any type) you must identify the DB and / or the DB engine you wish to use.
For Access files directly, you have to specify which file you wish to connect to. For SQL you specify which SQL Sever instance you want, then connect to the DB by name - the service instance is a "location" in that sense.


如果这是关于您的发布问题应用程序,在项目中包含数据库文件并设置其属性,以便将文件复制(但不编译)到输出目录中。



这样初始数据库始终位于可执行文件所在的目录中,如果使用ClickOnce发布,则可以在发布中包含数据库。



如果这是多用户情况(关于数据库),那么我建议创建一个单独的设置过程来集中设置数据库部分,应用程序将单独安装。
If this is a publishing problem concerning your application, include the database files in your project and set their properties so that the files are copied (but not compiled) into the output directory.

This way the initial database is always in the same directory where the executable is and if published for example using ClickOnce, you can include the database in the publication.

If this is a multi user situation (concerning the database), then I''d suggest creating a separate setup process to set up the database portion centrally and the applications would be installed separately.


这篇关于我可以将位置免费连接到msaccess数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆