T‑SQL Statements
SQL Server's Transact‑SQL (T‑SQL) language provides a rich set of statements for defining, manipulating, and controlling data. This reference groups the statements by purpose and includes quick links to detailed pages.
Data Manipulation Statements
Data Definition Statements
Transaction Control Statements
BEGIN TRANSACTION
– Start a transaction.COMMIT TRANSACTION
– Commit the current transaction.ROLLBACK TRANSACTION
– Undo the transaction.SAVE TRANSACTION
– Define a savepoint.
Security Statements
GRANT
– Grant permissions.REVOKE
– Remove permissions.DENY
– Deny permissions.
System and Utility Statements
EXECUTE
– Run a stored procedure or batch.PRINT
– Send a message to the client.RAISERROR
– Return an error message.SET
– Change session settings.