About 44,500 results
Open links in new tab
  1. CREATE TABLE (Transact-SQL) - SQL Server | Microsoft Learn

    CREATE TABLE T1 ( c1 INT PRIMARY KEY, c2 VARCHAR (50) SPARSE NULL, c3 INT SPARSE NULL, CSet XML COLUMN_SET FOR ALL_SPARSE_COLUMNS ); Q. Create a system-versioned disk-based temporal table. Applies to: SQL Server 2016 (13.x) and later, and Azure SQL Database.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  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 TABLE statement in SQL Server - SQL Shack

    Apr 29, 2022 · This article taught us about the CREATE TABLE statement in SQL Server. We have learned various use cases that can be used to create a table. We learned: How to create a table in a specific schema of the database. How to create a global and local temporary table. How to create a table with constraints. How to create a table in a different filegroup.

  8. T-SQL Tutorial: Create and query database objects - SQL Server

    Nov 22, 2024 · This lesson shows you how to create a database, create a table in the database, and then access and change the data in the table. Because this lesson is an introduction to using Transact-SQL, it doesn't use or describe the many options that are available for these statements.

  9. Create Table SQL Server Step by Step - MSSQLTips.com

    Jul 28, 2022 · Learn how to create a table in SQL Server using T-SQL along with several different examples that build upon each other to create the final table.

  10. SQL Server: CREATE TABLE Statement - TechOnTheNet

    This SQL Server tutorial explains how to use the CREATE TABLE statement in SQL Server (Transact-SQL) with syntax and examples. The SQL Server (Transact-SQL) CREATE TABLE statement allows you to create and define a table. The syntax for the CREATE TABLE statement in SQL Server (Transact-SQL) is: column1 datatype [ NULL | NOT NULL ],

Refresh