T-SQL Reference
SQL Server Transact-SQL language reference covering statements, queries, data types, operators, functions, hints, predicates, transactions, and language elements. — Page 2 of 6.
Database_user_mapped_to_Windows_User
Lists and describes the date and time data types available in T-SQL, including their ranges, accuracy, and storage sizes.
The following tables list the Transact-SQL date and time functions.
No description available.
No description available.
No description available.
No description available.
Binary constants have the prefix
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
```sql VALUES (1, 1, 1); INSERT INTO NestedCTE_t1 VALUES (2, 2, 2); INSERT INTO NestedCTE_t1 VALUES (3, 3, 3); GO.
Input type Return type float real float decimal( p , s ) decimal(38, s ) int smallint tinyint...
In some cases, a user can use a database without having a database user account (a database
resulting in different converted values.
DacPac, BACPAC, or the Import/Export service, the import process creates schema objects
No description available.
No description available.
A correlated subquery is a query that depends on the outer query for its values.
The Database Engine supports character and Unicode string constants that support enhanced
Describes enhanced date and time representation formats available in T-SQL for greater precision and compatibility.
ALTER permission on the table or view is required to run DROP INDEX.
No description available.
No description available.
To view the current setting for this setting, run the following query.
There are two ways to maintain the clustered columnstore index, and both methods achieved
No description available.
The following example drops the certificate
: SQL Server 2019 (15.x).
No description available.
These examples apply to columnstore indexes.
No description available.
This sample removes the archive compression, and only uses columnstore compression.
permissions on the specified user name. When no execution context is specified,
No description available.
The following sample demonstrates the INNER JOIN with filtering on multiple tables.
No description available.
T-SQL reference covering Extended methods.
This example uses two correlated subqueries to find the names of employees who sold a
No description available.
No description available.
No description available.
No description available.
T-SQL reference covering double precision.
Input type Return type float real float decimal( p , s ) decimal( p , 0) int smallint...
Specifies that updates are allowed while viewing the data in a DB-Library browse mode cursor.
No description available.
Specifies that the results of a query are to be returned as an XML document.
No description available.
Accepts any expression, column, or user-defined variable that can resolve to any valid T-SQL
No description available.
Returns information about Full-Text Search service-level properties.
Perform logical operations.
data type must be a JSON object or a JSON array.
No description available.
No description available.
The ability to return results from triggers will be removed in a future version of SQL Server.
Make sure to configure the driver to sample all the necessary data.
ToString (geometry Data
Constructs a geography instance from a GML representation.
2017 (14.x) and later versions
No description available.
T-SQL reference covering Extremely compact.
No description available.
(4, 4, 6), (4, 5, 6), (4, 5, 7). Using the prefix (A, B) the same column values have these distinct
size explicitly set by using a file size changing operation.
No description available.
No description available.
Translates ASCII characters to binary bytes, or binary bytes to ASCII characters. Each character
No description available.
No description available.
No description available.
compatibility level is set to 90 or higher.
To evaluate how changing the compression state affects the space usage by a table, an index,
statement requires changing a column used in a schema-bound view,
2017 (14.x) and later versions
The following query confirms actual base type and dimensions of a
No description available.
T-SQL reference covering GeometryCollection.
T-SQL reference covering GeometryCollection.
tinyint tinyint Data type Range Range expression Storage bigint int smallint tinyint int bigint int bigint smallmoney int...
CTE names can be reused at different nesting levels. CTE names at the same nesting level can't
ISO 8601 includes the ISO week-date system, a numbering system for weeks.
2016 (13.x) and later versions
The following example returns rows in which the column
2025 (17.x)
2025 (17.x)
The following example finds the average price of each type of product and orders the results
2025 (17.x)
No description available.
No description available.
No description available.
consecutive executions. For more information,
No description available.
No description available.
compatibility level (140). Database compatibility level 130 retained the SQL Server 2016