lightweight pooling
Switch the engine's worker scheduling from thread mode to fiber mode.
- Default
0 (thread mode)- Range
- 0 or 1
- Restart needed
- Yes
- Default checked on
- SQL Server 2025
What it does
In fiber mode workers are Windows fibers that yield cooperatively, an old answer to context-switch overhead on SMP machines. CLR execution is not supported under it, and hierarchyid methods, replication and some Policy-Based Management features misbehave in fiber mode. Deprecated in SQL Server 2025 and slated for removal, with Microsoft recommending against it in every version.
Default value
0 (thread mode). 0 (SQL Server 2025). Deprecated from SQL Server 2025; Microsoft recommends avoiding fiber mode in any version.
Check the current value
SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced FROM sys.configurations WHERE name = 'lightweight pooling'; -- EXEC sp_configure 'lightweight pooling'; also works, but only while show advanced options is 1; -- otherwise it fails with Msg 15123 because this is an advanced option.
Change it
EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'lightweight pooling', 0; RECONFIGURE; -- then restart the SQL Server service
Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.
When to change it
Almost never. Thread mode is what every modern workload should run, and only a specific support case should ever point here.
What can go wrong
The change needs a restart to try and another to undo, and features that assume thread mode fail under it: CLR is unsupported, so hierarchyid methods and replication can break after the restart. On SQL Server 2025 the mode is deprecated and planned for removal, so building on it today has a deadline attached.
Questions about lightweight pooling
What is the default value of lightweight pooling in SQL Server?
0 (thread mode). 0 (SQL Server 2025). Deprecated from SQL Server 2025; Microsoft recommends avoiding fiber mode in any version.
Does changing lightweight pooling require a restart?
Yes. Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.
When should I change lightweight pooling?
Almost never. Thread mode is what every modern workload should run, and only a specific support case should ever point here.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check lightweight pooling on your own server
SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.
Text and data on this page: CC BY 4.0, credit SQLly (sqlly.app). Code and SQL snippets: MIT. License details View as Markdown