Change MSSQL 2005 Express ‘SA’ password From Command Prompt


Visited 568 times, 1 so far today Windows VPS Add comments

SA is the administrative login for the MSSQL. To Change the MSSQL SA password please use following steps:

Step 1. Go to the command prompt of the server ( Start >> Run >> Cmd ) and type in command prompt
osql –L
This command will list all the MSSQL servers near you.

list1 Change MSSQL 2005 Express SA password From Command Prompt

Step 2. Copy full name of required MSSQL server and type
osql -S copied_servername –E
By this command you’ll connect to MSSQL server using Server administrator account (Windows Authentication).

enter Change MSSQL 2005 Express SA password From Command Prompt

Step 3. To change sa password you should execute the following query:
1> sp_password NULL,’new_password’,’sa’
2> go

Here the new_password will be the password which you want to set.

change Change MSSQL 2005 Express SA password From Command Prompt

Now try to login to MSSQL using new password.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in