I’ve created a new ASP.Net MVC 4 project in Visual Studio 2012 and figured out that it creates a file with a .mdf extension to store the data.
I would like to view the database schema and be able to query it manually the way I can query a SQL Server database with SQL Server Management Studio.
How to do that?
.mdfIS SQL Server … just attach the.mdfto your SQL Server instance, and you can have a look at it using SQL Server Mgmt Studio.This whole
AttachDbFileName=features is crap – sorry. I would never use such an approach to fiddle around with.mdffiles. Just attach the.mdffile to your SQL Server instance, and then the database will be on the server (where it belongs) and you can see it there (and use it from there – update your connection string to connect to the server and the database on the server).