Solved

Got error when I change password for SA in sql 2005 Management Studio

Posted on 2011-09-04
5
1,188 Views
Last Modified: 2012-05-12
I have version 9.0.5000
Login into SQL Server using Windows Authentication.  Is this sql server not setup for mix mode?  I thought I did select that mode.  But I can't remember what the sa password is.  How can I reset that?  Thanks


TITLE: Microsoft SQL Server Management Studio
------------------------------

Alter failed for Login 'sa'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Login&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot set a credential for principal 'sa'. (Microsoft SQL Server, Error: 15535)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.5000&EvtSrc=MSSQLServer&EvtID=15535&LinkId=20476
0
Comment
Question by:lapucca
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
giladhecht earned 500 total points
ID: 36479786
Connect to SQL Management studio using windows authentication, give the AD user all the priviliges in the server properties,script and apply.
Then go to user management,expand list,open properties for SA user,and change password.
After all this,log on again with SA user.
0
 

Author Comment

by:lapucca
ID: 36479978
Hi, I did "give the AD user all the priviliges in the server properties"  but where is "script" that I need to give myself permission?  Right now I still get the same error.  thanks.
0
 
LVL 2

Expert Comment

by:giladhecht
ID: 36479996
script is a button in the properties page,you press on it before pressing apply.
but it's not mandatory.
0
 

Author Comment

by:lapucca
ID: 36481343
Hi , I didn't see the script button but I check the Map to Credential checkbox and I am able to change the password.  However, the sa user is disabled.  I enable and save but got error 15535, error as below:
TITLE: Microsoft SQL Server Management Studio
------------------------------

Alter failed for Login 'sa'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Login&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot set a credential for principal 'sa'. (Microsoft SQL Server, Error: 15535)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.5000&EvtSrc=MSSQLServer&EvtID=15535&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
0
 

Expert Comment

by:Pit Z
ID: 36484811
uinstall and then install new mssql with new password
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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