SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SA Password


SA Password

Author
Message
Muhammad Haseeb Farhan
Muhammad Haseeb Farhan
SSC Veteran
SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)SSC Veteran (286 reputation)

Group: General Forum Members
Points: 286 Visits: 224
Hi all, is there any one who can help me in recovering my SA password. I m in deep trouble, is there any way by which i can recover my sa password. Currently i have not any other user with sys admin, security admin rights.
Jon-211045
Jon-211045
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 1
Didn't you write it down in a safe place??


Kindest Regards,

Jon
Free Cell Phone Games
athurgar
athurgar
Old Hand
Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)

Group: General Forum Members
Points: 323 Visits: 162

Are you using integrated security or standard. I am assuming standard. If so then change the security mode to mixed (this can be done via the registry - it has been posted before). Make sure you are in the admins group and then you can change the sa password.





Tim Morrison
Tim Morrison
SSC Journeyman
SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)SSC Journeyman (86 reputation)

Group: General Forum Members
Points: 86 Visits: 18

Jon McMullin - You need to read the rulles before posting unhelpful comments.

People need to know that they can post their problem here without people sneering at them - we've all done silly things, but hopefully we learn by them.


David Jackson
David Jackson
SSC Eights!
SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)SSC Eights! (822 reputation)

Group: General Forum Members
Points: 822 Visits: 1956
Take a look at http://www.ngssoftware.com/sqlcrack.htm


http://glossopian.co.uk/
"I don't know what I don't know."
fhanlon
fhanlon
SSCrazy
SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)

Group: General Forum Members
Points: 2985 Visits: 2310

In case you can't use the sqlcrack program (I believe you must be sysadmin to run this software) you may need to think about another method. Do you have access to either EM or QA where via a sysadmin id where the password was saved? If so you could create yourself an id and change the sa password.

If there really is nothing, you may need to think about reinstalling. using the latest backups of the user databases and the msdb database. This is a fair bit a work, so you may not want to do this without eliminating all other options.





Francis
Kevin Michael Bayson
Kevin Michael Bayson
Old Hand
Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)Old Hand (328 reputation)

Group: General Forum Members
Points: 328 Visits: 1

1. Log in to the OS as administrator.

2. If yours is a default instance of SQL Server, check the following value to make sure it set to a 0 (if you change this value, you must restart SQL Server):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\LoginMode

3. Run this from the command line to update the 'sa' password to NULL:

osql -E -Q "EXEC sp_password NULL, NULL, 'sa'"





sensanjay
sensanjay
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 3
You can also try this: register the SQL Server in the Enterprise Manager with Windows Authentication. Ensure that the Windows login you are using is a member of the Administrators group of the SQL Server machine. Then you can change the sa password from the EM, by accessing 'Logins' under 'Security'.

Hope this helps.



Francisco Javier Valdebenito
Francisco Javier Valdebenito
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 49

Here is another procedure

1- Stop MSSQL Server Service

2- Copy all system datafiles to a new folder

3- rebuild your master database, at this point you'll get access to SQL Server with sysadmin rights

4- Start MSSQL Server Service

5- attach old master database, the one backed up on step 2, using the name master_old

6- Execute the foloowing procedure on master_old databases

http://support.microsoft.com/kb/246133/en-usYou

you will get an script with all the logins in the server with the same sid and password ecrypted.

7- Execute The script from step 6.

8- Attach all users databases

9- set the right default database to every single login.

10- set the rights server roles for every single login.

11- detach master_old database

12- stop mssqlserver service and replaces the datafiles for msdb db with the ones backed up in step 2

13- start mssqlserver service

14- check that everything it's ok, and do a full backup, and also store in a secure place the new credentials for sa

Sorry for my poor english and good luck

Francisco Valdebenito


Jon-211045
Jon-211045
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 1

You are right . I am sorry for not considering context of how my post would be taken . I was more feeling panic for him not trying to make fun of him . Next time I will be more constructive !

These guys sure know how to get to the solution quick! Can you take my full name out of the post please?




Kindest Regards,

Jon
Free Cell Phone Games
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search