You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/databases/tempdb-database.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ description: This article provides details about the configuration and use of th
4
4
author: WilliamDAssafMSFT
5
5
ms.author: wiassaf
6
6
ms.reviewer: randolphwest, dfurman
7
-
ms.date: 11/18/2025
7
+
ms.date: 12/29/2025
8
8
ms.service: sql
9
-
ms.topic: conceptual
9
+
ms.topic: article
10
10
ms.custom:
11
11
- P360
12
12
- ignite-2025
@@ -42,7 +42,7 @@ The `tempdb` system database is a global resource that holds:
42
42
- Work files for hash match or hash aggregate operations.
43
43
- Intermediate sort results for operations such as creating or rebuilding indexes (if `SORT_IN_TEMPDB` is specified), or certain `GROUP BY`, `ORDER BY`, or `UNION` queries.
44
44
45
-
Each internal object uses a minimum of nine pages: an IAM page and an eight-page extent. For more information about pages and extents, see [Pages and extents](../pages-and-extents-architecture-guide.md#pages-and-extents).
45
+
Each internal object uses a minimum of nine pages: an IAM page and an eight-page extent. For more information about pages and extents, see the [Page and extent architecture guide](../pages-and-extents-architecture-guide.md).
46
46
47
47
-**Version stores**, which are collections of data pages that hold the data rows that support [row versioning](../sql-server-transaction-locking-and-row-versioning-guide.md#Row_versioning). The version stores contain:
48
48
- Row versions that are generated by data modification transactions in a database that uses row versioning-based `READ COMMITTED` or `SNAPSHOT` isolation transactions.
description: Learn about memory management architecture in SQL Server, including changes to memory management in previous versions.
4
4
author: rwestMSFT
5
5
ms.author: randolphwest
6
-
ms.date: 11/18/2025
6
+
ms.date: 12/29/2025
7
7
ms.service: sql
8
8
ms.subservice: supportability
9
-
ms.topic: conceptual
9
+
ms.topic: article
10
10
ms.custom:
11
11
- ignite-2025
12
12
helpviewer_keywords:
@@ -257,7 +257,7 @@ A buffer is an 8-KB page in memory, the same size as a data or index page. Thus,
257
257
258
258
When [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] starts, it computes the size of virtual address space for the buffer cache based on several parameters such as the amount of physical memory on the system, the configured number of maximum server threads, and various startup parameters. [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] reserves this computed amount of its process virtual address space (called the memory target) for the buffer cache, but it acquires (commits) only the required amount of physical memory for the current load. You can query the `committed_target_kb` and `committed_kb` columns in the [sys.dm_os_sys_info](system-dynamic-management-views/sys-dm-os-sys-info-transact-sql.md) catalog view to return the number of pages reserved as the memory target and the number of pages currently committed in the buffer cache, respectively.
259
259
260
-
The interval between [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] startup and when the buffer cache obtains its memory target is called ramp-up. During this time, read requests fill the buffers as needed. For example, a single 8-KB page read request fills a single buffer page. This means the ramp-up depends on the number and type of client requests. Ramp-up is expedited by transforming single page read requests into aligned eight page requests (making up one extent). This allows the ramp-up to finish much faster, especially on machines with a lot of memory. For more information about pages and extents, see [Pages and Extents Architecture Guide](pages-and-extents-architecture-guide.md#pages-and-extents).
260
+
The interval between [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] startup and when the buffer cache obtains its memory target is called ramp-up. During this time, read requests fill the buffers as needed. For example, a single 8-KB page read request fills a single buffer page. This means the ramp-up depends on the number and type of client requests. Ramp-up is expedited by transforming single page read requests into aligned eight page requests (making up one extent). This allows the ramp-up to finish much faster, especially on machines with a lot of memory. For more information about pages and extents, see [Page and extent architecture guide](pages-and-extents-architecture-guide.md).
261
261
262
262
Because the buffer manager uses most of the memory in the [!INCLUDE [ssNoVersion](../includes/ssnoversion-md.md)] process, it cooperates with the memory manager to allow other components to use its buffers. The buffer manager interacts primarily with the following components:
Copy file name to clipboardExpand all lines: docs/t-sql/functions/bit-count-transact-sql.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: "Transact-SQL reference for the BIT_COUNT function."
4
4
author: thesqlsith
5
5
ms.author: derekw
6
6
ms.reviewer: randolphwest
7
-
ms.date: 02/03/2025
7
+
ms.date: 12/29/2025
8
8
ms.service: sql
9
9
ms.subservice: t-sql
10
10
ms.topic: reference
@@ -53,7 +53,7 @@ For example, `SELECT BIT_COUNT (CAST (-1 AS SMALLINT))` and `SELECT BIT_COUNT (C
53
53
54
54
Distributed Query functionality for the bit manipulation functions within linked server or ad hoc queries (`OPENQUERY`) aren't supported.
55
55
56
-
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#row-overflow-considerations) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Pages and extents architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
56
+
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#large-row-support) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Page and extent architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
57
57
58
58
The bit manipulation functions operate on the **tinyint**, **smallint**, **int**, **bigint**, **binary(*n*)**, and **varbinary(*n*)** data types. Large object (LOB) data types, such as **varchar(max)**, **nvarchar(max)**, **varbinary(max)**, **image**, **ntext**, **text**, **xml**, and common language runtime (CLR) BLOB types, aren't supported.
59
59
@@ -86,4 +86,3 @@ The result is `2`. This is because `17` in binary is `0001 0001`, and there are
@@ -57,7 +57,7 @@ The *bit_offset* parameter in `GET_BIT` is used to identify the *n*th bit of the
57
57
58
58
Distributed Query functionality for the bit manipulation functions within linked server or ad hoc queries (`OPENQUERY`) aren't supported.
59
59
60
-
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#row-overflow-considerations) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Pages and extents architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
60
+
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#large-row-support) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Page and extent architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
61
61
62
62
The bit manipulation functions operate on the **tinyint**, **smallint**, **int**, **bigint**, **binary(*n*)**, and **varbinary(*n*)** data types. Large object (LOB) data types, such as **varchar(max)**, **nvarchar(max)**, **varbinary(max)**, **image**, **ntext**, **text**, **xml**, and common language runtime (CLR) BLOB types, aren't supported.
63
63
@@ -66,24 +66,23 @@ The bit manipulation functions operate on the **tinyint**, **smallint**, **int**
66
66
In this example, the second and fourth bits are returned.
67
67
68
68
```sql
69
-
SELECT GET_BIT ( 0xabcdef, 2 ) as Get_2nd_Bit,
70
-
GET_BIT ( 0xabcdef, 4 ) as Get_4th_Bit;
69
+
SELECT GET_BIT(0xabcdef, 2) AS Get_2nd_Bit,
70
+
GET_BIT(0xabcdef, 4) AS Get_4th_Bit;
71
71
```
72
72
73
73
The results are as follows:
74
74
75
-
|Get_2nd_Bit|Get_4th_Bit|
76
-
|---|---|
75
+
|Get_2nd_Bit|Get_4th_Bit|
76
+
|---|---|
77
77
| 1 | 0 |
78
78
79
79
> [!NOTE]
80
80
> `0xabcdef` in binary is 1010 1011 1100 1101 111**0** 1**1**11. The second and fourth bits are highlighted.
@@ -60,7 +60,7 @@ SET_BIT will throw an error if *bit_offset* is negative or greater than the last
60
60
61
61
Distributed Query functionality for the bit manipulation functions within linked server or ad hoc queries (`OPENQUERY`) aren't supported.
62
62
63
-
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#row-overflow-considerations) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Pages and extents architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
63
+
Large object (LOB) data types in the Database Engine can store data that exceeds 8,000 bytes. These data types store data on a [row-overflow](../../relational-databases/pages-and-extents-architecture-guide.md#large-row-support) data page. A LOB also encompasses data types that store data on dedicated LOB page structures, which use a text or an image pointer of in-row references to LOB data pages. For more information about data storage, see the [Page and extent architecture guide](../../relational-databases/pages-and-extents-architecture-guide.md).
64
64
65
65
The bit manipulation functions operate on the **tinyint**, **smallint**, **int**, **bigint**, **binary(*n*)**, and **varbinary(*n*)** data types. Large object (LOB) data types, such as **varchar(max)**, **nvarchar(max)**, **varbinary(max)**, **image**, **ntext**, **text**, **xml**, and common language runtime (CLR) BLOB types, aren't supported.
66
66
@@ -71,7 +71,7 @@ The bit manipulation functions operate on the **tinyint**, **smallint**, **int**
71
71
In this example, the third bit (at offset 2, zero-based index) is being set to `1`.
72
72
73
73
```sql
74
-
SELECT SET_BIT ( 0x00, 2 ) as VARBIN1;
74
+
SELECT SET_BIT(0x00, 2) AS VARBIN1;
75
75
```
76
76
77
77
The result is `0x04`. This is because the *expression_value* of `0x00` is converted to `0000`. SET_BIT changes its third bit (offset 2) to 1, making it `0100`. This binary value is then returned as `4` in hexadecimal representation.
@@ -81,16 +81,15 @@ The result is `0x04`. This is because the *expression_value* of `0x00` is conver
81
81
In this example, the *bit_value* is being set to 0 instead of the default of 1.
82
82
83
83
```sql
84
-
SELECT SET_BIT ( 0xabcdef, 0, 0 ) as VARBIN2;
84
+
SELECT SET_BIT(0xabcdef, 0, 0) AS VARBIN2;
85
85
```
86
86
87
87
The result is `0xABCDEE`. The *expression_value* is converted to binary, which is `1010 1011 1100 1101 1110 1111`. SET_BIT changes the first bit to a 0, and the result is returned in hexadecimal format.
0 commit comments