I've forgotten the sa password for SQL Server - what can I do?

Neil Pike

November 13, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. The easiest way around this is to logon to the actual SQL Server NT machine itself as administrator. Then connect to SQL Server using any of the tools and specify "." as the server name and ask for a trusted connection. As long as the admins group hasn't been explicitly removed from having sa rights then you should connect ok and be able to reset the password.

If you're in mixed-mode and you know the NT userid of someone with sa rights, then get their password reset and logon/connect as them.

Otherwise you can try and find a dba's machine who already has the server registered to SQL EM with sa and use that copy of SQL EM to connect.

If all these fail then you'll have to rebuild master and disk reinit (6.x) or re-attach (7.x) all the user databases.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like