We help IT Professionals succeed at work.

SQL Server Managment Studio: Change default login

Steve Endow
Steve Endow asked
on
1,151 Views
Last Modified: 2012-04-18
Occasionally I have to test different logins with SQL Server on my development machine, so I'll use the test login on Management Studio.

After I do this, Management Studio remembers the test account and keeps it the default.  So now, every time I launch Management Studio again, I have to change the login back to 'sa'.

See attached screen shot.

Even after I delete the testuser login, it still shows as the default Login, so it's obviously being cached somewhere.

I've searched the registry for my "testuser" account, but it doesn't seem to be saved in the registry.  I've checked a few places to see if it is stored in a config file, but I couldn't find anything with a brief search.

Anyone know how to get rid of my 'testuser' account in the Login list or at least make it so that it is NOT the default login?

It isn't the end of the world, but it's really, really annoying.
SQLLogin.jpg
Comment
Watch Question

Database Analyst
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
lcohanDatabase Analyst
CERTIFIED EXPERT

Commented:
One comment (and sorry I hit submit too soon...) the above will clear the entire list cached for all SQL servers/logins so you can type in the servername/login and check box to remember password if you like.
Steve EndowMicrosoft MVP
CERTIFIED EXPERT

Author

Commented:
Awesome, thanks, that did the trick!

My google-fu was weak--I was searching for "default login", but that didn't get any results.  Would never have thought to use "remembered login".
Steve EndowMicrosoft MVP
CERTIFIED EXPERT

Author

Commented:
Thanks!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.