Solved

What are steps to change SA account password in sql server 2008?

Posted on 2012-03-12
2
202 Views
Last Modified: 2012-08-13
Hi there,
I need to change  the SA account password as a part of the security auditing .... what are steps do that and what's the look out for in sql server 2008?  Thank you in advance for your help
0
Comment
Question by:hpradhan08
2 Comments
 
LVL 6

Accepted Solution

by:
Peter Kiprop earned 500 total points
ID: 37713292
Hi hpradhan08,

There are two ways you can change your password. 1 is by use of code and 2 by using management studio.

To use option one use the below code;

ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
GO
USE [master]
GO
ALTER LOGIN [sa] WITH PASSWORD=N'Younewpassword' MUST_CHANGE
GO

Open in new window



the above code will overwrite the current password. This will also help when you have forgotten the password.

you may as well use the below

ALTER LOGIN [sa] WITH PASSWORD = N'yourNewPassword' OLD_PASSWORD = 'yourOldPassword';
GO

Open in new window


Option two follow the link below

http://blog.sqlauthority.com/2007/12/29/sql-server-change-password-of-sa-login-using-management-studio/

Hope this helps.
Pthepebble
0
 

Author Comment

by:hpradhan08
ID: 37727788
ok, thanks.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Stored Proc - Performance Enhancement 15 53
Powershell v3 - SQLCMD 3 26
SQL server 2014 replication error 16 30
Where is the Help Section? 8 21
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

809 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