Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
SQL database in Microsoft Fabric
A SQL statement is an atomic unit of work and either completely succeeds or completely fails. A SQL statement is a set of instruction that consists of identifiers, parameters, variables, names, data types, and SQL reserved words that compiles successfully. Analysis Services creates an implicit transaction for a SQL statement if a BeginTransaction
command does not specify the start of a transaction. Analysis Services always commits an implicit transaction if the statement succeeds, and rolls back an implicit transaction if the command fails.
There are many types of statements. Perhaps the most important is the SELECT that retrieves rows from the database and enables the selection of one or many rows or columns from one or many tables in SQL Server. This article summarizes the categories of statements for use with Transact-SQL (T-SQL) in addition to the SELECT
statement. You can find all of the statements listed in the left-hand navigation.
For information on T-SQL support in a SQL analytics endpoint or Warehouse in Microsoft Fabric, see T-SQL surface area in Microsoft Fabric.
The backup and restore statements provide ways to create backups and restore from backups. For more information, see the Backup and restore overview.
Data Definition Language (DDL) statements defines data structures. Use these statements to create, alter, or drop data structures in a database. These statements include:
Data Manipulation Language (DML) affect the information stored in the database. Use these statements to insert, update, and change the rows in the database.
Permissions statements determine which users and logins can access data and perform operations. For more information about authentication and access, see the Security center.
Service Broker is a feature that provides native support for messaging and queuing applications. For more information, see Service Broker.
SET statements determine how the current session handles run time settings. For an overview, see SET statements.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today