How do I gain permissions to a Sql Compact Database?
        Posted  
        
            by Quenton Jones
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Quenton Jones
        
        
        
        Published on 2010-05-25T15:32:32Z
        Indexed on 
            2010/05/25
            16:01 UTC
        
        
        Read the original article
        Hit count: 270
        
I have an Sql Compact Database v3.5 that I'm bundling with my application. When the application is installed, the database is copied into the application's Program Files directory.
Because of Vista and Win7's security settings, the installed application can't access the database file. It is merely a problem of having the database file reside in the Program Files.
The solution I have thought of is to copy the file into Program Data, but does anyone have another solution? I am sure others have come across a similar problem.
Thanks in advance for your input.
© Stack Overflow or respective owner