Solved

Change an Existing sa password

Posted on 2007-11-23
9
1,491 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 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQl Query to find x consecutive Nbrs in a Table 30 98
HTML <font style="color:red"> 9 33
SQL View / Qtry 3 13
SQL Recursion schedule 13 19
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

820 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