帮助设置DataBase的权限。 [英] Help setting up permissions on DataBase.

查看:112
本文介绍了帮助设置DataBase的权限。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的(VS 2019)解决方案构建为.msi文件,我安装了
程序,然后当我运行它时,我只能从DataBase(.mdf& .ldf文件),我无法修改或删除记录,所以我什么时候到程序的安装文件夹并手动更改DataBase权限,然后...程序按预期工作...
我的观点是最终用户可能不知道该怎么做。那么,如何使用没有读写限制的数据库生成.msi文件?这是一个可以在任何计算机上运行的程序,而最终用户不需要手动提供这些权限。




欢迎任何想法!



谢谢。

推荐答案

朋友,

欢迎到MSDN论坛。

1.你使用
clickonce
或使用
Microsoft Visual Studio安装程序项目
或其他技术?

1.Do you use clickonce or use the Microsoft Visual Studio Installer Project? Or other technologies?

根据您的描述,您似乎将.mdf& .ldf文件添加到部署中,因为它们是先决条件的一部分。你的应用程序。(如果我误解了任何问题,请随时纠正我)

According to your description, it seems that you add .mdf&.ldf files into the deployment since they are part of the prerequisites of your application. (If I misunderstand anythiing, please feel free to correct me)

2.在将数据库文件添加到部署过程之前,是否检查了数据库文件的属性?

2.Have you checked the attributes of the database files before you add them into deployment process?

您可以尝试在VS外部的窗口中配置mdf和ldf文件的属性,以使其可供所有用户编辑。如果您使用此技术检查它是否有帮助,请将它们部署到安装项目中。

You can try configuring the properties of mdf and ldf files in windows outside VS to make them editable for all users. After that deploy them into a setup project if you use this technology to check if it helps.

任何更新请随时在此处分享。我们会尽力帮助您!

And any update please feel free to share here. We'll try our best to help!

最好的问候

Lance


这篇关于帮助设置DataBase的权限。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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