티스토리 뷰
1. sqlcmd로 제한하기
net start mssqlserver /m"SQLCMD" (주의 : SQLCMD 대문자만 입력)
>>
sqlcmd -S. -E
or
sqlcmd -S서버명\인스턴스명 -E
or
sqlcmd -S클러스터SQL가상이름\인스턴스명 -E (클러스터환경시)
2. SSMS로 제한하기
net start msqlserver /m"Microsoft SQL Server Management Studio - 쿼리"
or
net start msqlserver /m"Microsoft SQL Server Management Studio - Query"
>>
SSMS를 실행하여 작업한다.
[참고문서]
Using the SQL Server Service Startup Options
https://technet.microsoft.com/en-us/library/ms190737(v=sql.105).aspx
-m"Client Application Name" | When you use the -m option with SQLCMD or SQL Server Management Studio, you can limit the connections to a specified client application. For example, -m"SQLCMD" limits connections to a single connection and that connection must identify itself as the SQLCMD client program. Use this option when you are starting SQL Server in single-user mode and an unknown client application is taking the only available connection. To connect through the Query Editor in Management Studio, use -m"Microsoft SQL Server Management Studio - Query". Client Application Name is case sensitive. Important Do not use this option as a security feature. The client application provides the client application name, and can provide a false name as part of the connection string. |
[관련포스트]
[MSSQL] 클러스터 환경에서 SQL Server 단일모드 시작하기
'SQL Server' 카테고리의 다른 글
SQL DBCC SHRINKFILE 후 시점 로그복원이 가능할까? (0) | 2016.02.22 |
---|---|
SQL SSMS를 다른 윈도우계정으로 접속하는 방법 (0) | 2016.02.17 |
MSDTC 재 설치하는 방법 (0) | 2016.02.11 |
SQL Server에서 NT AUTHORITY\SYSTEM 계정으로 로그인하기 using PSExec 명령어 (0) | 2016.02.11 |
SQL Server 2012 SP1 Enterprise 에서 Enterprise Core 버전으로 에디션업그레이드 하기 (0) | 2016.02.01 |
- Total
- Today
- Yesterday