Change SQL SERVER SA password with Windows Admin Account
I received a machine with an instance of SQL Server 2008 installed, I am able to access this instance through SQL Server Management Studio Express with my Windows administrator account but I am unable to perform any action within the instance due to the fact that I do not have permission.
1 - Can i Change Password or delete SA account with Windows ADMIN account?
2-I can give permission from sysadmin
to Windows ADMIN account without using the account of SA?
2 answers
Dude, I've done this once. I followed the steps detailed in this article: http://community.spiceworks.com/how_to/show/22044-recover-sa-password-on-microsoft-sql-server
In short, the idea is to start the service as a single user. The path is as follows:
-
Stop SQL Server service
-
Change the SQL Server Service command line to add option' - m '
-
Start the service again (now with this command)
-
Open the
sqlcmd
with your user and run:EXEC sp_addsrvrolemember 'DOMAIN\Username', 'sysadmin'; GO
-
Stop the service again, remove the option
-m
and restart the service -
You will have access to reset the SA password
Guy was mass for me worked when I made the password change via cmd Stop SQL Server service Change the SQL Server Service command line to add Option' - m '
Via DOS run sqlcmd-s WIN-D0NTN4PVBFS\SQLEXPRESS go sp_password @ old = null, @new = ' rohto17@', @loginame = 'sa' go value