Question

I'm using Visual Studio 2015. In Explore Server, I create a new DB.mdf file.

When I right click on "Tables" I don't have the option to create a new table.

Do I need to install something in order to create MDF files' tables?

Was it helpful?

Solution

The appropriate way to do this with visual studio is to:

  1. Install SQL Server Data Tools for Visual Studio.
  2. Create a SQL Database project.
  3. Use the tools within the project to create and modify your database objects.
  4. Use the publish feature to push your changes to the database.

Using a DB project allows you to easily leverage source control, and define build configurations for your databases.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top