Avatar of bibi92
bibi92Flag for France

asked on 

change sa password without sysadmin priv

Hello,

I search to change password of sa account without control server role.

Thank you

Best regards
Microsoft SQL Server

Avatar of undefined
Last Comment
bibi92
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Open SQL Server Configuration Manager
Stop the SQL Server Instance you need to recover the SA password
Open the properties on the SQL Server Instance and click on the Advanced tab
Change the Startup parameter by adding -m;  at the begging of the line and click OK
Start the SQL Service Instance
Open the command prompt
Run sqlcmd and press enter
Run a Transact-SQL command to add an existing account or a new account to the sysadmin server role.  Replace DOMAIN\Username with the account you want to add.

EXEC sp_addsrvrolemember 'DOMAIN\Username', 'sysadmin';
GO

Open in new window


Named pipes must be enabled for this to work.
Avatar of bibi92
bibi92
Flag of France image

ASKER

Hello,

Sorry these comments don't answer the question, I search how ad account can change sa password without sysadmin or control server permission.

Thank you

Best regards
you have to have administrative permissions and be their physically on or via RDP to the machine that hosts the sql server program. If one could do it remotely then what would the value of having a password be since every script kiddie on the internet would have access to your data?
Avatar of bibi92
bibi92
Flag of France image

ASKER

Hello,

Sorry these comments don't answer the question, I search how ad account can change sa password without sysadmin or control server permission.

Thank you

Best regards
The answer is: You can't, plain and simple
Avatar of bibi92
bibi92
Flag of France image

ASKER

Hello,

With control server securable, it's possible to change sa password.

Best regards
what do you mean by control server securable?  A user with local administrator privileges can backdoor their way in.
ASKER CERTIFIED SOLUTION
Avatar of bibi92
bibi92
Flag of France image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo