'"Applies to" references'
T-SQL Reference

Most code examples in the Transact-SQL reference were tested on servers that are running a

#tsql#statements
@@PACK_RECEIVED
T-SQL Reference

table (trigger scope). For

#tsql#variables
@@SERVERNAME
T-SQL Reference

Returns the name of the SQL Server instance the client is connected to.

#tsql#variables
@@TIMETICKS
T-SQL Reference

Represents the number of 100-nanosecond intervals (ticks) for time-related calculations.

#tsql#variables
= (Assignment Operator)
T-SQL Reference

No description available.

#tsql#operators
||= (Compound assignment)
T-SQL Reference

char varchar nchar nvarchar varchar(max) nvarchar(max) binary varbinary varbinary(max) varchar(max) nvarchar(max) varchar(max) nvarchar(max)

#tsql#operators
A. Use SELECT to retrieve rows and columns
T-SQL Reference

No description available.

#tsql#statements
About Restore Scenarios
T-SQL Reference

No description available.

#tsql#statements
About working with SQL Server backups
T-SQL Reference

No description available.

#tsql#queries
ABS
T-SQL Reference

Input type Return type float real float decimal( p , s ) decimal(38, s ) int smallint tinyint...

#tsql#statements
Additional considerations about BACKUP options
T-SQL Reference

No description available.

#tsql#statements
Additional Considerations About RESTORE Options
T-SQL Reference

No description available.

#tsql#statements
Additional remarks about creating indexes
T-SQL Reference

Under certain conditions, spatial indexes support a number of set-oriented geometry methods.

#tsql#statements
Aggregate functions
T-SQL Reference

No description available.

#tsql#statements
AI functions
T-SQL Reference

2025 (17.x)

#tsql#statements
ALTER AUTHORIZATION for databases
T-SQL Reference

The new owner principal must be one of the following:

#tsql#statements
Analytic functions
T-SQL Reference

No description available.

#tsql#statements
and Analytics Platform System (PDW)
T-SQL Reference

When the database compatibility level is 110 or higher. See

#tsql#operators
Angle conversion
T-SQL Reference

No description available.

#tsql#statements
APPLOCK_TEST
T-SQL Reference

' ' ' ' nvarchar(255) ' ' nvarchar(32) Shared Update IntentShared IntentExclusive Exclusive ' ' nvarchar(32) Transaction Session...

#tsql#statements
Argument
T-SQL Reference

) value as the number of minutes (signed). This statement

#tsql#statements
Arguments
T-SQL Reference

No description available.

#tsql#statements
Arithmetic operators
T-SQL Reference

No description available.

#tsql#operators
Assembly Validation
T-SQL Reference

If any dependent assemblies referenced by the root assembly aren't already in the database

#tsql#statements
ASSEMBLYPROPERTY
T-SQL Reference

Returns information about assembly properties.

#tsql#statements
Asymmetric encryption and decryption
T-SQL Reference

No description available.

#tsql#operators
Available commands
T-SQL Reference

No description available.

#tsql#statements
Azure SQL Database and SQL database in Fabric
T-SQL Reference

2025 (17.x)

#tsql#operators
B. Multiple updates
T-SQL Reference

Here's the result set.

#tsql#statements
Backward Compatibility for Down-level Clients
T-SQL Reference

Milliseconds can be preceded by either a colon (:) or a period (.).

#tsql#statements
Basic PIVOT example
T-SQL Reference

No description available.

#tsql#queries
Basic syntax example
T-SQL Reference

You can't change the compression setting of a single partition if the table has nonaligned

#tsql#statements
Binary styles
T-SQL Reference

No description available.

#tsql#data-types
Bit manipulation functions
T-SQL Reference

2022 (16.x)

#tsql#data-types
Bitwise operators
T-SQL Reference

No description available.

#tsql#data-types
Boolean Data Type
T-SQL Reference

No description available.

#tsql#data-types
boundaries
T-SQL Reference

No description available.

#tsql#statements
C. Four ranking functions used in the same query
T-SQL Reference

This example returns the top ten employees ranked by their salary.

#tsql#predicates
calculations
T-SQL Reference

No description available.

#tsql#statements
Catalog view
T-SQL Reference

No description available.

#tsql#statements
CEILING
T-SQL Reference

Input type Return type float real float decimal( p , s ) decimal( p , 0) int smallint...

#tsql#statements
CERTENCODED
T-SQL Reference

Returns the public portion of a certificate in binary format.

#tsql#statements
Certificate copying
T-SQL Reference

VERIFYSIGNEDBYASYMKEY

#tsql#statements
Change the seed value
T-SQL Reference

value.

#tsql#statements
Change the size of a column
T-SQL Reference

or online index rebuild DDL operation currently being run without taking

#tsql#statements
Changing the SQL Server Service Account
T-SQL Reference

Specifies the name of the new Windows service account.

#tsql#statements
char and varchar
T-SQL Reference

T-SQL reference covering character varying.

#tsql#data-types
Character string constants
T-SQL Reference

No description available.

#tsql#data-types
CHECK constraints
T-SQL Reference

Columns participating in a foreign key relationship must be defined with the same length

#tsql#statements
Check objects in parallel
T-SQL Reference

No description available.

#tsql#predicates
Clause
T-SQL Reference

In the definition of a check constraint.

#tsql#statements
Clustered indexes
T-SQL Reference

No description available.

#tsql#statements
Code example conventions
T-SQL Reference

Schema name is omitted.

#tsql#statements
Collation labels
T-SQL Reference

No description available.

#tsql#statements
Collation rules
T-SQL Reference

Indicates that the value of an expression is the result of an operation between two strings

#tsql#statements
Collation sensitive and collation insensitive
T-SQL Reference

Here's the result set.

#tsql#operators
COLLATIONPROPERTY
T-SQL Reference

Returns information about a specified collation.

#tsql#statements
Collection access
T-SQL Reference

Returns the start point of a geometry instance (for LineString types).

#tsql#statements
CollectionAggregate (geometry Data Type)
T-SQL Reference

Returns a geometry instance from a collection of geometry types.

#tsql#data-types
columnstore
T-SQL Reference

No description available.

#tsql#statements
Combining vector indexes with traditional indexes
T-SQL Reference

No description available.

#tsql#queries
Compare COALESCE and ISNULL
T-SQL Reference

No description available.

#tsql#language-elements
Compare GROUPING_ID() to GROUPING()
T-SQL Reference

No description available.

#tsql#statements
Comparing sql_variant Values
T-SQL Reference

ODBC does not fully support

#tsql#queries
Comparison of supported GROUP BY features
T-SQL Reference

No description available.

#tsql#queries
Compatibility level 90 and above
T-SQL Reference

In the preceding code example, the final example has a mismatch between format

#tsql#operators
Compatibility levels and database engine upgrades
T-SQL Reference

performance differences of your most important queries between two different compatibility

#tsql#operators
Compatibility support
T-SQL Reference

RESTORE LOG can include a file list to allow for creation of files during rollforward.

#tsql#statements
Complex PIVOT example
T-SQL Reference

No description available.

#tsql#queries
COMPRESS
T-SQL Reference

Gzip varbinary(max) binary( n ) char( n ) nchar( n ) nvarchar(max) nvarchar( n ) varbinary(max) varbinary( n...

#tsql#statements
Computed columns
T-SQL Reference

columns that exceed the byte limit can be created if the existing

#tsql#statements
Concurrency considerations for MERGE
T-SQL Reference

optimizer doesn't need to perform extra validation processing to locate and update

#tsql#queries
Conditions for creating partitioned views
T-SQL Reference

When you design a partitioning scheme, it must be clear what data belongs to each partition.

#tsql#statements
Conditions for modifying data in partitioned views
T-SQL Reference

No description available.

#tsql#predicates
Configuration functions
T-SQL Reference

T-SQL reference for Configuration functions syntax and usage.

#tsql#statements
Considerations for replication
T-SQL Reference

No description available.

#tsql#statements
Considerations When You Use the SET Statements
T-SQL Reference

SET TRANSACTION ISOLATION LEVEL

#tsql#statements
Constants and randomness
T-SQL Reference

Converts radians to degrees.

#tsql#operators
Context switching
T-SQL Reference

No description available.

#tsql#statements
Control-of-Flow
T-SQL Reference

No description available.

#tsql#statements
Convert binary and varbinary data
T-SQL Reference

No description available.

#tsql#data-types
Convert character data
T-SQL Reference

No description available.

#tsql#statements
Convert date and time data
T-SQL Reference

No description available.

#tsql#data-types
Convert decimal and numeric data
T-SQL Reference

No description available.

#tsql#data-types
Convert money data
T-SQL Reference

You don't need to enclose currency or monetary data in single quotation marks (

#tsql#data-types
Converting Date and Time Data
T-SQL Reference

When you convert to date and time data types, SQL Server rejects all values it cannot recognize

#tsql#data-types
Converting float and real data
T-SQL Reference

- 3.40E + 38 to -1.18E - 38, 0 and 1.18E - 38 to 3.40E + 38

#tsql#data-types
Countersignatures
T-SQL Reference

When you execute a signed module, the signatures are temporarily added to the SQL token,

#tsql#statements
CREATE CREDENTIAL
T-SQL Reference

Creates a server-level credential for authentication to external resources.

#tsql#statements
CREATE EXTERNAL FILE FORMAT (Transact-
T-SQL Reference

2016 (13.x) and later versions

#tsql#statements
CREATE INDEX
T-SQL Reference

No description available.

#tsql#statements
CREATE USER
T-SQL Reference

T-SQL reference for CREATE USER syntax and usage.

#tsql#statements
cursor
T-SQL Reference

T-SQL reference covering sp_describe_cursor.

#tsql#data-types
Cursor Functions
T-SQL Reference

No description available.

#tsql#data-types
Cursors
T-SQL Reference

No description available.

#tsql#data-types
D. Create tables with SELECT INTO
T-SQL Reference

No description available.

#tsql#statements
Data Manipulation Language
T-SQL Reference

No description available.

#tsql#statements
Data model metadata (types and columns)
T-SQL Reference

Returns the ID for a schema-scoped object.

#tsql#operators
database
T-SQL Reference

command isn't supported for the statistics object on a

#tsql#statements
database in Fabric
T-SQL Reference

No description available.

#tsql#predicates