THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

John Paul Cook

Don’t take the SSMS login for granted!

My boss couldn’t login using SSMS after he told me to drop a database no longer in use. It was easy to fix. Think about it – he could login before the database was dropped, but not after. It was his default database. When your default database does not exist or otherwise isn’t valid, your login fails. I reset his default database to a valid database and he could login. But he wanted to know what he could have done in case I wasn’t around.

I thought of sqlcmd, but knew there had to be other workarounds. Brian Kelley came to my rescue and reminded me about the Options button on the SSMS Connect to Server dialog box. Clicking the Options button exposes additional options spread across three different tabs. Take a close look at the Connect to database dropdown list on the Connection Properties tab.


Select the <Browse server…> choice and you’ll see this:


Click Yes and you’ll see something similar to the following:


You can select which database you’ll connect to. My boss could have done this to successfully connect without getting my help. You can also switch the network protocol from TCP/IP to Named Pipes. Or check the Use custom color checkbox (SSMS 2008) and change the color of your connection. I’ve been using that feature to help keep me notice whether I’m on a test database or a production database. I use red for production databases, yellow for staging, green for test.


Published Friday, February 12, 2010 9:24 PM by John Paul Cook

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS


No Comments

Leave a Comment


About John Paul Cook

John Paul Cook is a database and Azure specialist in Houston. He previously worked as a Data Platform Solution Architect in Microsoft's Houston office. Prior to joining Microsoft, he was a SQL Server MVP. He is experienced in SQL Server and Oracle database application design, development, and implementation. He has spoken at many conferences including Microsoft TechEd and the SQL PASS Summit. He has worked in oil and gas, financial, manufacturing, and healthcare industries. John is also a Registered Nurse currently studying to be a psychiatric nurse practitioner. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2. Connect on LinkedIn

This Blog



Privacy Statement