Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Using OSql how can I change the MSDE password for SA user?

Using OSql how can I change the MSDE password for SA user?

On the computer that is hosting the instance of MSDE to which you are connecting, open a command prompt window.

Type the following command, and then press ENTER:

osql -U sa



At the Password: prompt, type the current password and press ENTER, or just press ENTER if your password is blank.

This connects you to the local, default instance of MSDE by using the sa account. To connect by using Windows authentication, type this command:

use osql -E

 

Type the following commands, on separate lines, and then press ENTER

sp_password @old = null, @new = "sa",  @loginame ="sa"
go

 

NOTE: It is recommended that you replace "sa" with a new strong password.
A strong password includes alpha-numeric and special characters, and a combination of upper and lower case characters. However, in this instance, we have set the sa user to use sa as the password for simplicity of explanation.

You will receive the following informational message, which indicates that your password was changed successfully:

Password changed

 

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:49
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.