hamed shams

hamed shams

  • NA
  • 4
  • 0

Problem in changing .mdf with full control permission

Aug 4 2014 5:33 PM
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