기본적으로 SQL Server는 사용자 연결에 필요한 메모리를 동적으로 관리합니다. 그러나 사용자 연결 구성 옵션을 0이 아닌 값으로 설정하여 최대 연결 수를 고정 값으로 설정할 수 있습니다. 사용자 연결 옵션을 0으로 설정하는 것이 좋습니다. 이 옵션이 0이 아닌 값으로 설정되어 있고 지정된 연결 수를 초과하는 경우 추가 로그인 시도는 위의 메시지가 나타나면 실패하게 됩니다. 값을 1로 설정하면 SQL Server 인스턴스가 시작되지 않을 수 있습니다.
SQL Server가 실행 중이고 기존 시스템 관리자 연결이 있는 경우 다음 명령을 실행하여 사용자 연결 옵션을 기본값인 0(동적)으로 다시 설정하십시오.
sp_configure 'user connections', 0
go
reconfigure with override
변경 내용을 적용하려면 SQL Server 인스턴스를 다시 시작해야 합니다.
SQL Server가 시작되지 않거나 기존 연결 중 하나를 사용할 수 없는 경우 SQL Server 인스턴스를 최소 구성으로 시작하고 사용자 연결 옵션을 기본값인 0(동적)으로 다시 설정해야 합니다.
인스턴스가 클러스터형인 경우 SQL Server 및 SQL Server 에이전트가 오프라인이며 작업 중인 노드가 SQL Server 디스크 리소스를 소유하고 있는지 확인합니다.
이 SQL Server 인스턴스에 연결할 수 있는 MS DTC 및 다른 응용 프로그램이나 서비스를 중지하거나 오프라인으로 설정하십시오.
다음 구문을 사용하여 명령 프롬프트에서 SQL Server를 시작하십시오. 이 SQL Server 인스턴스의 경우 binn 디렉터리로 전환해야 합니다.
SQL Server 2008 기본 인스턴스 또는 SQL Server 7.0: sqlservr.exe -c -f
SQL Server 2008 명명된 인스턴스: sqlservr.exe -c -f -s {instancename}
SQL Server Management Studio를 사용하여 SQL Server에 연결하십시오. SQL Server에서 시스템 관리자 권한이 있는 로그온 프로필을 사용하고 있는지 확인합니다.
다음 명령을 실행하십시오.
sp_configure 'user connections', 0 go reconfigure with override
명령 프롬프트 창에서 Ctrl+C를 눌러 SQL Server를 종료하십시오. SQL Server를 종료하려면 Y를 입력하십시오.
SQL Server를 정상적으로 시작하십시오.
Target | Microsoft.SQLServer.2008.DBEngine | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 17809 | ||
Event Source | $Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2008ID='{A9344B04-ED2A-4F54-B91D-CC99D35469F1}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Microsoft.SQLServer.SQLDefaultAccount |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2008.Maximum_limit_for_connections_has_been_reached_1_5_Rule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2008ID='{A9344B04-ED2A-4F54-B91D-CC99D35469F1}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>17809</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.Maximum_limit_for_connections_has_been_reached_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>