I have a database in one of my Visual Studio Express projects. I want to attach it to my local SQLEXPRESS instance so I can run aspnet_regsql on it and add the membership database. When I select Attach Databases and then attempt to browse to the files (C:\Users\username\Documents\Visual Studio 2010\Projects\nameofproject) it only lets me navigate to C:\Users\username...Why? How can I fix this?
|
|
This is because SSMS isn't the application which is getting the folder list. SSMS asks the database to do this as SSMS doesn't know if the database is local or remote, so it always has the SQL Server do the work. The SQL Server probably isn't running under your user account so it didn't have access to your home directory. If you give read access to the user account the SQL Server instance is using, you will be able to browse the directory. |
|||||
|
|
I figured it out. Despite the fact that I have turned off UAC on my machine and run the MSSMS application as administrator I still cannot navigate into my documents folder - its apparently using a non-privileged user to browse the folders. I ended up giving Users list folder contents permissions to my username, my documents, visual studio 2010, etc. and then full permissions to the actual project...this worked. |
||||
|
|
Instead of giving all users access to your personal files/folders, just change the SQLExpress Windows service to start with your credentials instead of the default Network Service ID. |
|||
|