7

Hi I'm migrating a database to SQL Server 2012, and I have a problem.

Let me start by saying the application (ISV) has horrible security! So try not to cringe too much.

  1. The app logs in with sa authentication.
  2. The sa password is hard-coded into the app.

So the sa password on the 2012 instance must match the app login. However, it does not meet the 2012 password requirements.

Is there a way to override this functionality?

Iain Samuel McLean Elder
2,4285 gold badges26 silver badges39 bronze badges
asked Oct 9, 2012 at 13:51
1
  • 3
    The correct response is to fix the app. If it is a commercial app that you have bought, then request that the vendor fix it. If they won't, then change to another app, any app doing this is so full of security holes and so unprofessionally designed, that I would not consider risking my company information by using it. Commented Oct 9, 2012 at 17:48

2 Answers 2

14

Try

 ALTER LOGIN sa
 WITH PASSWORD = 'password',
 CHECK_POLICY = OFF

(I feel dirty now)

In order to mitigate some of the potential horrors this allows, I'd recommend renaming the built-in sa account to something else, then creating a new login called sa with the rights the app actually requires.

answered Oct 9, 2012 at 13:53
3
  • 3
    You should feel dirty now. Commented Oct 9, 2012 at 17:21
  • Useful when working in development environments Commented Feb 1, 2018 at 23:52
  • I only can give you one +1 for this. For sharing your feelings I'd give another X-D Commented Jun 24, 2022 at 15:07
0

I agree with HLGEM. They must change the login account to another one (even if it needs sysadmin or - less problematic, dbowner - privileges on a first moment).

On the other way, you can change the sa pass on SSMS or using ALTER LOGIN (see podiluska's answer).

PS.: Yes, I feel dirty (2). ;-)

answered Oct 9, 2012 at 18:30

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.