如何设置数据库的访问写入 [英] how to set access write of database

查看:138
本文介绍了如何设置数据库的访问写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2008中使用access database开发了一个Windows应用程序。在设置时设置数据库的读写权限?

plz! help

I am developed a windows application in Visual studio 2008 using access database.how to set read and write permission to the database on set up time?
plz! help

推荐答案

在解决方案资源管理器中右键单击您的安装项目,然后选择查看 - >文件系统。



右键单击目标计算机上的文件系统,然后选择添加特殊文件夹 - >自定义文件夹。



将自定义文件夹重命名为通用应用程序数据文件夹。 (这不是用于生成文件夹的名称,它只是为了帮助您保持原状。)



更改文件夹'将DefaultLocation属性设置为[CommonAppDataFolder] [制造商] \ [ProductName]。请注意应用程序文件夹的DefaultLocation属性的相似性,包括单个反斜杠的奇怪用法。



对于荒谬(但不可否认)的事实感到奇怪有一个名为Property的文件夹属性。充满狂犬病的婴儿,想出这个sh * t?



将文件夹的Property属性更改为COMMONAPPDATAFOLDER。



放置在Common Application Data文件夹中的数据文件将被复制到\ ProgramData \Manufacturer \ ProductName(在Vista上)或\Documents and Settings \ All Users运行安装程序时,\Application Data \Manufacturer \ ProductName(在XP上)。
Right-click your setup project in the Solution Explorer and pick "View -> File System".

Right-click "File system on target machine" and pick "Add Special Folder -> Custom Folder".

Rename the custom folder to "Common Application Data Folder." (This isn''t the name that will be used for the resulting folder, it''s just to help you keep it straight.)

Change the folder''s DefaultLocation property to "[CommonAppDataFolder][Manufacturer]\[ProductName]". Note the similarity with the DefaultLocation property of the Application Folder, including the odd use of a single backslash.

Marvel for a moment at the ridiculous (yet undeniable) fact that there is a folder property named "Property." Babies full of rabies, who comes up with this sh*t?

Change the folder''s Property property to "COMMONAPPDATAFOLDER".

Data files placed in the "Common Application Data" folder will be copied to "\ProgramData\Manufacturer\ProductName" (on Vista) or "\Documents and Settings\All Users\Application Data\Manufacturer\ProductName" (on XP) when the installer is run.


这篇关于如何设置数据库的访问写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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