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 6:28 PM

How to reset sa password in MS SQL Server?

How to reset sa password in MS SQL Server?



The sa account has full rights in the MS SQL Sever environment. When you install the MS SQL Server program, the sa account is created and sa password is default blank (NULL). You can also change the blank sa password to a strong one when the setup program is running.

How to verify if the SA password is blank

1 On the computer that is hosting the instance of MSDE to which you are connecting, open a command prompt window.

2 At the command prompt, type the following command, and then press ENTER:

osql -U sa

This connects you to the local, default instance of MSDE by using the sa account. To connect to a named instance installed on your computer type:

osql -U sa -S servername\instancename

You are now at the following prompt:

Password:...

Posted on Thursday, January 07, 2010 at 1:48 AM

How to reset 'sa' password if SQL Password is lost/forgotten/unknown?

How to reset 'sa' password if SQL Password is lost/forgotten/unknown?



First off, you can log in as any SSO role user and have them reset the 'sa' password for you.

Being life and life being not always so simple we may not always have an SSO role handy (or configured)

So, we resort to the following:
  1. Edit the ‘runserver' file. By default it's in the $SYBASE_HOME/install directory
  2. Add "-psa" (for password 'sa') to the end of the command line. (I have noticed that this DOES NOT work in windows unless it's the FIRST param on the command line)


  3. Save file and reboot server. You ‘may' have to use Unix ‘kill' or Windows ‘End Task' but I suggest that as a last resort.
  4. ...

Posted on Thursday, January 07, 2010 at 1:47 AM

How to change your system administration password if you forget your SQL password?

How to change your system administration password if you forget your SQL password?


Look, there are so many similar questions:
How to reset sa password ?
"How to change SQL password without data loss?"
"I've forgotten the sa password for SQL Server - what can I do?"
"How to Change SA Password If Forgot or Lost SQL Password?"
...

...

 

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.