Theme Graphic
Theme Graphic

sql server password recovery

the ways to reset sql password you have forgot or lost on ms sql server
Posted on Thursday, January 07, 2010 at 1:46 AM

How to: Change 'sa' password on SQL server 2008

How to: Change 'sa' password on SQL server 2008





If you happen to forget your SQL Server password for 'sa' account, then here's a simple query to help you reset it:


ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]

GO

USE [master]

GO

ALTER LOGIN [sa] WITH PASSWORD=N'MyNewPassword' MUST_CHANGE

GO

In Case you remember your Old Password and want to change the 'sa' password, use this query:


ALTER LOGIN [sa] WITH PASSWORD = N'MyNewPassword' OLD_PASSWORD = ‘MyOldPassword';

GO

Reference: http://blog.passwordunlocker.com/how-to-change-sa-password-or-other-ms-sql-server-passwords/...

 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.