Using OSql how can I change the MSDE password for SA user?
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: