SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server and file permissions


SQL Server and file permissions

Author
Message
khoi
khoi
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 9
Hi,

I'm trying to make my app work happily under Windows 7 (and 8) UAC. Currently, the app uses SQL Server 2005 Express as the backend DB. I have built a feature for backing up the database. This is nothing fancy, but just implementing this process: detaching the DB files (.mdf and .ldf), make a copy of the files, add the copies to a ZIP archive, then re-attach the original files.

Initially, before the DB files are attached to the SQL Server instance, in source code, I had made sure that the files have "Everyone - Full Control" in their ACLs. But once they are attached, SQL Server process takes over, and removes "Everyone - Full Control". Once the files are detached, "Everyone - Full Control" is not added back into their ACLs.

Does anyone know why this happens? And how and I stop it from happening? The problem arises when after detaching the DB files, I have to add them to a ZIP archive. Running as a standard user on Windows 7, with UAC enabled, UAC will not allow me to add these files to a ZIP archive, nor copy them to a different folder. Also, I cannot manually add "Everyone - Full Control" to their ACLs either. I received this error when attempting to modify their ACLs: “Attempted to perform an unauthorized operation”.

Please help. Thanks.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search