Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 How to recover sa password

Author  Topic 

Dipti_SQL
Starting Member

2 Posts

Posted - 2010-03-05 : 23:46:17
Hii,
bymistake i removed admin rights of admin user n nw i want to reset it bt i forgt the password of sa user so please help me in recovering sa password or to set password of sa.

Thanks in tons,

Regards,


Dipti Sanghvi
With Love

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-06 : 18:11:09
You can't recover it unless you have some administrator login to get into the instance. You will probably need to reinstall SQL and restore your databases.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2010-03-08 : 12:51:43
Should be able to log onto your network as an administrator and get SA access to the database server.

Edit: Sniped! Should have read more carefully...
________________________________________________
If it is not practically useful, then it is practically useless.
________________________________________________
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2010-03-08 : 14:09:15
You can probably gain admin access to SQL Server 2005 by adding your Windows login to one of the following local groups on the server, depending on if it is default or named instance (replace ComputerName and InstanceName with the actual names)
Default instance: SQLServerMSSQLUser$ComputerName$MSSQLSERVER
Named instance: SQLServerMSSQLUser$ComputerName$InstanceName

If that doesn't work, read this article for another method:
How to Connect to a SQL 2005 Server When You Are Completely Locked Out
http://www.sqlservercentral.com/articles/Administration/68271/

Once you have admin access to SQL Server, you can change the SA password.

You will need to have Windows admin access on the server to do either.



CODO ERGO SUM
Go to Top of Page
   

- Advertisement -