![]() I’m perennially looking for a simpler way to do this. It was important to me because I need to distribute sample solutions along with existing databases and I want the database files in the solution folder and *simple* steps I could relay to users to make sure they could use them when they want to debug and test out the solution themselves. Just “duh” for how much time I spent on this. Once it was attached to localdb, then I could see it in SSOE and actually access it in my app using a normal connection string. I couldn’t figure out how to attach to an existing database.įinally, some brain cells returned to my skull and I went over to VS’s Server Explorer and attached the database there (and provided a nice logical name rather than ending up with the rangy file-path-as-database-name). SSOE lets you inspect databases that are already attached to localdb and it lets you create new localdb databases. SSOE covers many (not all) common tasks…and many more than VS’s Server Explorer let’s you do.īut I spent an embarrassing amount of time trying to figure out how to easily connect an MDF file to my SQL Server 2012 LocalDB instance because, duh …I was doing it wrong! Over and over and over again. I’ve been loving Visual Studio 2012’s SQL Server Object Explorer (SSOE) instead of always jumping out to SQL Server Management Studio (SSMS) to do database management.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |