Change the ‘SA’ password without having old password

Posted: January 4, 2008 in Sqlserver

Change the ‘SA’ password without having old 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

Advertisements
Comments
  1. jagadeesh says:

    thank you and very nice it is

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s