Home > SQL Server, SQL Server 2008 > Create new Table in SQL Server 2008 R2

Create new Table in SQL Server 2008 R2

In this post, I’ll be guiding you how to create a new table in Microsoft SQL Server 2008 R2. In this demo, I’ll be using Microsoft SQL Server 2008 R2 Express Edition. I assume you already have a existing database. If you do not, please see this post first.

Now, lets get started.

  1. Run the Microsoft SQL Server Management Studio and login to your database engine.
  2. On the “Object Explorer” expand “Databases” menu, and then also expand your database menu by clicking on the “+” icon next to each respective folders.
  3. Right-Click on “Tables” and select “New Table”.
  4. A new window will then comes up next to the “Object Explorer”. Now enter your column name, data type, and allow nulls.
  5. You can make a column as a Primary Key by just keeping your cursor on the column that you want to make it a Primary Key, and then click on the Key icon on the Toolbar.
  6. When you’re done, hit the “Save” button on the toolbar or just simply press "Ctrl+S” to save. Then Microsoft SQL Server will prompt you to give your table a name. Enter a name and click “OK"04-CreateNewTable2

That’s it. You have just created a new table in your database in Microsoft SQL Server 2008.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: