R
Robin
I want to backup a sql express database from my windows forms C# code. I can
do this by running a sql command "BACKUP DATABASE TO..." (or using SMO) and
I can save the backup file to any subdirectories of C:. The problem I have
is that I want the user to be able to save the backup file to any location,
including C:\...documents and settingsm\my documents...
However, the file access for these directories (user specific) are more
limited and the BACKUP DATABASE command fails due to Access Denied.
Should I mess with the ACL to grant NETWORK SERVICE read/write permissions
on the directory they want to save to? I am not very comfortable doing this
as I don't like the idea of changing the ACL security on someone's system.
The simplest solution is for me to restrict where they can save the backup
file (to subdirectory of C:\), but if there are any other solutions, I'd
like to hear them.
Thanks.
do this by running a sql command "BACKUP DATABASE TO..." (or using SMO) and
I can save the backup file to any subdirectories of C:. The problem I have
is that I want the user to be able to save the backup file to any location,
including C:\...documents and settingsm\my documents...
However, the file access for these directories (user specific) are more
limited and the BACKUP DATABASE command fails due to Access Denied.
Should I mess with the ACL to grant NETWORK SERVICE read/write permissions
on the directory they want to save to? I am not very comfortable doing this
as I don't like the idea of changing the ACL security on someone's system.
The simplest solution is for me to restrict where they can save the backup
file (to subdirectory of C:\), but if there are any other solutions, I'd
like to hear them.
Thanks.