Thursday, June 12, 2008

SQL Server 2005 DBA - how to reset 'sa' passowrd

Link: Mark Minasi's Reader Forum

Login to the server with an administrative account for that machine. Open Query Analyzer and connect to SQL Server using Windows authentication, not mixed. Run sp_password as show below to reset the sa password:sp_password @new = 'MRND', @loginame = 'sa'

SQL Server 2005で sa のパスワードをリセットする方法
要するに、肝は sp_password を呼ぶこと。@newは新規パスワード。接続時はWindows認証を使う。ユーザーはサーバー機のAdminグループに所属しているアカウント。

追記、上ではQuery Analyzerを使っているが、SS Management Studio でも実行可能。

0 comments: