Skip to content
WJunction - Webmaster Forum

How to Change MSSQL 'SA' password

Status
Not open for further replies.
Hi,

SA login is the administrative login for the MSSQL.. To Change the MSSQL SA password you have to execute following commands from command prompt of your server:

1) Go to the command prompt of the server & type in command prompt osql -L
This command will list all the MSSQL servers near you.

2) Copy full name of required MSSQL server & type
Code:
osql -S copied_servername -E
By this command you'll connect to MSSQL server using administrator account.
3) To change sa password you should execute the following query:

Code:
sp_password NULL,'new_password','sa' go
Now try to login to MSSQL using new password..
 
Status
Not open for further replies.

About the author

A
Active Member · Joined
Windows Servers
88
Messages
4
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom