Short answer
Yes—treat lowering user connections below the current active user-session count as a gate for new logins, not as an eviction mechanism. Already established sessions should remain until they disconnect or are ended by the client; SQL Server is not documented to forcibly drop them merely because the configured ceiling is now lower. New attempts can fail while the active count is at or above the limit. Do not use this as a controlled drain without testing.
Likely explanation vs confirmed facts
- Likely and consistent with documented behavior: existing user sessions are not disconnected just by lowering the option; new connections are refused until active user sessions fall below the new value.
- Not settled from the supplied research: whether DAC or internal system sessions consume the same slots; whether Express or edition-limited builds change the picture; the exact error text or number; and whether every supported version behaves identically. The brief mentions error 17887, but treat that as unverified and capture the actual message on your build.
- Confirmed operational distinction: client-side pool exhaustion can look like server-side refusal. Test a fresh non-pooled connection and inspect server-side state before changing an instance-wide setting.
Version and edition assumption
Assume a modern supported SQL Server unless told otherwise; older releases, Express, and edition-limited builds may differ. Because the supplied research requires current verification, treat DAC/system accounting and exact enforcement as version-specific and validate on a non-production copy or in a maintenance window.
Scoped checks
- Baseline:
SELECT COUNT_BIG(*) AS user_sessions FROM sys.dm_exec_sessions WHERE is_user_process = 1; Also inspect session_id, is_user_process, login_name, host_name, program_name from the same DMV to see what is counted. - Current setting:
EXEC sp_configure 'user connections'; If it is hidden, run EXEC sp_configure 'show advanced options', 1; RECONFIGURE; then re-check. Record the original value before changing anything. - Change only in test or maintenance:
EXEC sp_configure 'user connections', <new_limit>; RECONFIGURE; Confirm with EXEC sp_configure 'user connections'; Do not add KILL as part of this change. - Verify: open a new non-pooled client connection; expect refusal while the active count remains at or above the limit; confirm pre-existing sessions can still run queries; then restore the original value and
RECONFIGURE. - DAC check: connect with
admin:servername only if DAC is enabled and you are authorized; compare sys.dm_exec_sessions before and after and note whether DAC appears as is_user_process = 0. Do not enable DAC casually on production.
Interpretation
If new logins fail but existing sessions work, the ceiling is behaving as a gate. If existing sessions drop, or DAC/system sessions are refused unexpectedly, stop and revert; capture SELECT @@VERSION;, SELECT SERVERPROPERTY('Edition'), SERVERPROPERTY('ProductVersion');, the exact error, and whether pooling was involved.
Missing detail that changes the recommendation: the SQL Server version/edition and whether the active count includes DAC or system sessions. Without that, the safe answer is: existing sessions likely persist, DAC/system accounting is unverified, and the behavior must be validated before relying on it.