About 6,900,000 results
Open links in new tab
  1. Create tables (Database Engine) - SQL Server | Microsoft Learn

    Feb 4, 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 requires CREATE TABLE permission in the database, and ALTER permission on the schema in which the table is being created.

  2. SQL CREATE TABLE Statement - W3Schools

    The CREATE TABLE statement is used to create a new table in a database. .... The column parameters specify the names of the columns of the table. The datatype parameter specifies the type of data the column can hold (e.g. varchar, integer, date, etc.). Tip: For an overview of the available data types, go to our complete Data Types Reference.

  3. CREATE TABLE (Transact-SQL) - SQL Server | Microsoft Learn

    CREATE TABLE dbo.Employee ( EmployeeID INT PRIMARY KEY CLUSTERED ); B. Use FOREIGN KEY constraints. A FOREIGN KEY constraint is used to reference another table. Foreign keys can be single-column keys or multicolumn keys.

  4. SQL Server CREATE TABLE: Creating a New Table in the Database

    This tutorial shows you how to use the SQL Server CREATE TABLE statement to create a new table in a specific schema of a database.

  5. 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: CREATE TABLE employees ( employee_id INT NOT NULL, last_name VARCHAR(50) NOT NULL, first_name VARCHAR(50), salary MONEY );

  6. How to create a table using SQL Server Management Studio

    Oct 14, 2019 · We can create a table using SQL Server Management Studio (SSMS) Table Designer or T-SQL in SQL Server. This tip aims to serve as a step-by-step guide to create a table with the Table Designer using SSMS.

  7. Create New Table in SQL Server - TutorialsTeacher.com

    There are two ways to create a new table in SQL Server: Using T-SQL Script; Using Table Designer in SQL Server Management Studio; Create Table using T-SQL Script. You can execute the CREATE TABLE statement in the query editor of SSMS to create a new table in SQL Server.

  8. CREATE TABLE SQL Server Syntax Examples - MSSQLTips.com

    Mar 15, 2022 · In this tutorial, we learned some of the basics of creating a table in SQL Server. We learned the core elements of a table, a few ways of creating the table, naming conventions for a table, how to insert and modify data in the table and brief overview of some common data types.

  9. How to Create a Table in SQL Server Management Studio

    Jan 31, 2025 · In this SQL Server tutorial, I will show you how to create a table in SQL Server Management Studio. As a database developer, you must know how to create a table to store the information in it. Tables are important objects in SQL. Server databases and their design are a base for both DBAs and database developers. Let’s get started to learn more.

  10. CREATE TABLE statement in SQL Server - SQL Shack

    Apr 29, 2022 · In this article, we are going to learn about the CREATE TABLE statement. This article consolidates the various scenarios. I have covered the following scenarios. The CREATE TABLE statement is used to create a new table in a database. The syntax of CREATE TABLE statement is as follows: …. . . . . In the syntax,