Creating MDF tables using Visual Studio 2015
-
06-10-2020 - |
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?
Solution
The appropriate way to do this with visual studio is to:
- Install SQL Server Data Tools for Visual Studio.
- Create a SQL Database project.
- Use the tools within the project to create and modify your database objects.
- 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