Solved

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

Posted on 2012-03-12
2
203 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
[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
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

726 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