ERP World
[MSSQL] SA 계정 비밀번호 초기화 본문
MSSQL을 사용하다 보면 관리자 계정(SA)의 비밀번호를 잊어버리는 경우가 발생한다.
이떄는 아래의 절차로 비밀번호를 초기화 할 수 있다.
- Open the command prompt
- Run sqlcmd and press enter
- Run a Transact-SQL (Below) command to add an existing account or a new account to the sysadmin server role. Replace DOMAIN\Username with the account you want to add. *NOTE: if you receive errors, I¡¯ve listed some common issues at the end of this article.
EXEC sp_addsrvrolemember 'DOMAIN\Username', 'sysadmin';
GO
- 참고문서
https://community.spiceworks.com/how_to/22044-recover-sa-password-on-microsoft-sql-server
'Microsoft > Database' 카테고리의 다른 글
[MSSQL] Lock Tree 보기 (0) | 2018.01.23 |
---|---|
[MSSQL] Index Rebuild 스크립트 (0) | 2018.01.23 |
Comments