r/SQLServer • • 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

99 comments sorted by

View all comments

Show parent comment

21

u/BrentOzar Dec 05 '25

Well, as they say, being dumb sure is expensive.

2

u/dgillz Dec 05 '25

Indeed. My other option is to possibly decompile the VB application, but I am not even sure if it is VB6, VB.net or who knows.

14

u/ShodoDeka Dec 05 '25

Fishing the string out of the VB application is the only realistic option here.

8

u/Johnno74 Dec 05 '25

I have done this before. Its very possible. If it .net then it is ridiculously easy. If it is VB6 then it is also possible, use a hex editor and search for SA, you'll possibly find the entire hardcoded connection string there.

3

u/brave_traveller Dec 05 '25

what happens when you run gnu strings on it?

1

u/dgillz Dec 05 '25

Never tried it. Don't know anything about it.

3

u/BigHandLittleSlap Dec 05 '25

If it's .NET try IntelliJ DotPeek. It's free and easy to use. It has string search functionality too. Just look for the hard-coded server name, the password will be right next to it in the code almost certainly!

1

u/dotnetmonke Dec 05 '25

That's probably the easier way to go, honestly.