使用完全控制权限更改.mdf时出现问题 [英] Problem in changing .mdf with full control permission

查看:651
本文介绍了使用完全控制权限更改.mdf时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
我使用VS.NET 2010

SQL express



我已生成一个Windows应用程序。我使用过.MDF文件。

该项目工作正常,但是当我将安装项目附加到它并安装它。 .mdf文件的权限被更改并变为只读不能写/更新。

在本地计算机和其他安装了Windows 7的计算机上,我可以更改数据库但是当我设置我的应用程序时在安装了Windows 8的另一台计算机上,它无法更改数据库并发送Failed update .mdf ....错误消息。

当我手动更改.mdf&.ldf文件的权限时为用户完全控制它的工作原理。但是我想自动设置完全控制权限。

我该怎么做?



我运行我的应用程序作为管理员,以及.mdf和.ldf文件具有管理员用户的完全控制权限。在这种状态下也不起作用。但是,当我为用户设置完全控制时,它的工作原理!我不知道为什么?

问候

Hi I use VS.NET 2010
SQL express

I have generated an windows application. I have used .MDF file.
The project is working fine but when I have attached setup project to it and installed it. The permission of .mdf file get changed and become read only not able to write/update.
At the local computer and other computer with windows 7 installation ,I can change the database but when I setup my application on the other computer with windows 8 installation , it cant change database and send "Failed update .mdf...." error message.
When I manually change the permission of the .mdf & .ldf file for "Users" to full control it works. But I want to set the full control permission with my setup automatically .
How can I do that?

I run my application as an administrator, and the .mdf & .ldf files have full control permission for Administrator users. At this state is doesnt work,too . But when I set the full control for "Users" , it works!. I dont know why?
Regards

推荐答案

这篇关于使用完全控制权限更改.mdf时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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