Problem solve Get help with specific problems with your technologies, process and projects.

Changing the 'SA' password on SQL Server 7.0 without old password

SQL Server Security Expert Steven Andres explains how administrators of operating systems (OS) can change the 'SA' password on SQL Server 7.0 without the old password.

Do you know a way I can change the sa password for SQL Server 7.0 without the old password and with SQL Server authentication using a login ID and password?
Use OSQL with the –E option (for authenticated user). If you are an administrator of the OS, you will get in without being prompted for the sa password. Once you are at the OSQL interactive prompt, issue the following command:

EXEC sp_password NULL, 'newpassword', 'username' GO

This was last published in May 2006

Dig Deeper on SQL Server Security

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.