2

I ran into an odd problem. I tried to disable an old, unused login but when I clicked OK the server came back with the following error

The database 'xyz' does not exist. Supply a valid database name.

The odd thing is that that database was detached years ago. Somewhere, SQL still has some reference to it. Where can I look and how can it be removed?

Thanks.

1
  • 2
    Could it be that this user has that xyz database set as its default database that he used to connect to? Commented Jul 26, 2012 at 16:00

1 Answer 1

3

Could it be that this login has the xyz database set as its default database that he used to connect to?

enter image description here

If so: change that default database to something else, when you disable the login.

Sign up to request clarification or add additional context in comments.

1 Comment

That was it. When I looked at the Default database the selected value was blank because the database obviously could not be found. Thanks!

Your Answer

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.