I'm starting a new project and intend to use a local database file during development, rather than using a network server. I can query it by right clicking on the .mdf in Server Explorer and selecting New Query, but that's going to be a pain in the neck to have to copy all of my sql scripts over to it on a regular basis.
I apologize if my post is ambiguous - I'm having a hard time wording what I want to do. I want to use the SQL Server prompt with the .mdf file in my App_Data. (screenshot)
When I check the connection string of the .mdf
in Server Explorer, I get the following:
Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\[username]\Desktop\...\App_Data\localdb.mdf;Integrated Security=True
I've not managed to get this string, in any form, to work, though.