- ✕This summary was generated using AI based on multiple online sources. To view the original source information, use the "Learn more" links.
Using SQL Server Management Studio (SSMS)
Open SQL Server Management Studio (SSMS) and connect to your database instance.
In Object Explorer, expand the Databases node and select the database where you want to create the table.
Right-click on the Tables node and select New Table.
In the Table Designer, enter the column names, select their data types, and specify whether NULL values are allowed for each column.
To set a column as the Primary Key, right-click the column and select Set Primary Key.
To configure additional properties (e.g., identity, constraints), use the Column Properties pane.
From the File menu, select Save Table_1. Enter a name for the table and click OK.
Refresh the Tables node in Object Explorer to view the newly created table.
Using Transact-SQL (T-SQL)
Open SQL Server Management Studio (SSMS) and connect to your database instance.
Click New Query on the toolbar to open a query editor.
Use the following syntax to create a table:
Create tables (Database Engine) - SQL Server | Microsoft Learn
Nov 18, 2025 · You can create a new table, name it, and add it to an existing database, by using the table designer in SQL Server Management Studio (SSMS), or Transact-SQL. This task …
SQL CREATE TABLE Statement - W3Schools
The SQL CREATE TABLE Statement The CREATE TABLE statement is used to create a new table in a database. Syntax CREATE TABLE table_name ( column1 datatype, column2 datatype, …
Code sample
CREATE TABLE Persons (PersonID int,LastName varchar(255),FirstName varchar(255),Address varchar(255),...CREATE TABLE in SQL Server - GeeksforGeeks
Jul 23, 2025 · In this article, we will learn how to efficiently use CREATE TABLE statements to create a table in our database. We will cover all the basic concepts with clear and concise …
- People also ask
SQL Server CREATE TABLE: Creating a New Table in the Database
Summary: in this tutorial, you will learn how to use the SQL Server CREATE TABLE statement to create a new table. Tables are used to store data in the database. Tables are uniquely named …
Create a New Table in SQL Server - TutorialsTeacher.com
To design a new table, open SSMS and connect to your sql server instance. In Object Explorer, expand the HR database or the database where you want to create a new table. Now, right-click …
CREATE TABLE statement in SQL Server
Apr 29, 2022 · Learn how to create a table in SQL Server with various scenarios, such as schema, constraints, filegroup, and temporal table. See …
Create Table SQL Server Step by Step
Jul 28, 2022 · In this SQL tutorial, we will start with the basics of creating a table (syntax, column definition, data types, constraints, etc.) and build …
SQL Server Create table - SQL Server tutorial
In this blog, we’ll dive into how to use the CREATE TABLE statement effectively, with examples and best practices. What is the CREATE TABLE Statement? The CREATE TABLE statement …
How to Create a Table in SQL Server | DataReportive Tutorials
Learn how to create a table in SQL Server, including syntax, best practices, and step-by-step instructions for table creation.
SQL Server: CREATE TABLE Statement - TechOnTheNet
Let's look at an example of how to use the CREATE TABLE statement in SQL Server (Transact-SQL). For example: last_name VARCHAR(50) NOT NULL, first_name VARCHAR(50), salary …