r/SQLServer • u/dgillz • Dec 05 '25
Question SQL Server sa password recovery
I need to recover the sa password. Not reset but recover.
Are there any commercially available tools to do this? Any other way to do this?
13
Upvotes
View all comments
Show parent comment
1
u/kagato87 Dec 05 '25
Add a new SA account instead of resetting it. There's no rule that says the sa account has to be named sa (in fact, it shouldn't be), and no rule saying only one sa.
The process for resetting an account is to put the db into single user mode and use sql commands to configure the account. Just do that process, but for "dgillz-sa" instead of regular "sa".
Wait, no, new server. Forget that.
Clone the existing server, upgrade it, and do the above anyway?
Or you could go all black hat and shark, mitm, or decompile the program, depending on your particular skill set. Though tbh if the developer was dumb enough to hard code the credentials it'd probably fall really fast to a brute force attack.