Solved

Change an Existing sa password

Posted on 2007-11-23
9
1,488 Views
Last Modified: 2008-07-15
We have had to upgrade from MSDE to SQL 2005 Express.  I am unable to restore the data because of an install goof by our developers.  I need to change the sa password.  I have the old password, and I have the new password. but I don't know how to change the sa password to finish this upgrade.  
0
Comment
Question by:paul_brinkman
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20340525
check out the sp_password procedure.
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 20340669
Change a password
This example changes the password for the login Victoria from ok to coffee.

EXEC sp_password 'ok', 'coffee'
0
 

Expert Comment

by:Pawel Lijewski
ID: 20748371
sp_password returns: Cannot alter the login 'sa', because it does not exist or you do not have permission.
0
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 20748379
sp_Password @Old = 'putOldPassword', @Nen = 'newpassword', @loginame ='sa'
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 20748383
sorry typo


sp_Password @Old = 'putOldPassword', @New = 'newpassword', @loginame ='sa'
0
 

Expert Comment

by:Pawel Lijewski
ID: 20752173
what if you don't have old_password ?
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 20752182
it is not necessary that you need the old passoword in the above part

You just need to provide the  @New and @loginaname
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 21606997
So you've sorted it all out now?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now