Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Change an Existing sa password

Posted on 2007-11-23
9
Medium Priority
?
1,495 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 143

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 1500 total points
ID: 20748379
sp_Password @Old = 'putOldPassword', @Nen = 'newpassword', @loginame ='sa'
0
 
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

604 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