How to deploy an SQL Compact Edition database file (.sdf) in the AppData folder? Connection string?
问题 I'm planning to deploy my DB file in the Users\CurrentUserName\AppData folder, because default User Account Control settings restrict write access to the Program Files directory where my program is installed. First question - is this correct? So far, I've created a custom folder, set the DefaultLocation property to [LocalAppDataFolder][ProductName] , and put the .sdf file in that folder. This works in Windows 7, but it doesn't seem to work in Windows XP - I can't find any sign of it being