Adding Tables To A Database Project
By: Armando Prato
We've created our project and set deployment properties and database options. Now it's time to create a table!
In the Schema View, navigate to Schemas folder and under the dbo schema and right click on Tables. The option to Add a table will appear:
Clicking on Table... presents the Add New Item screen. The Name field will default to something like Table1. We change this value to FootBallClub and click Add:
A script window will appear with a template script with the name of the table as follows
We change the template code as follows to match the table layout we want to maintain
Saving the changes will show the table under Tables in the Schema View.
Last Update: 9/10/2011