Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Tags more
Archives
Today
Total
관리 메뉴

ERP World

[MSSQL] SA 계정 비밀번호 초기화 본문

Microsoft/Database

[MSSQL] SA 계정 비밀번호 초기화

swanseo 2018. 1. 23. 19:39

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