THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - 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.

image

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

image

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

image

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.

image

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

Comments

No Comments

Leave a Comment

(required) 
(required) 
Submit

About John Paul Cook

John Paul Cook is both a Registered Nurse and a Microsoft SQL Server MVP experienced in Microsoft 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. Experienced in systems integration and workflow analysis, John is passionate about combining his IT experience with his nursing background to solve difficult problems in healthcare. He sees opportunities in using business intelligence and Big Data to satisfy healthcare meaningful use requirements and improve patient outcomes. John graduated from Vanderbilt University with a Master of Science in Nursing Informatics and is an active member of the Sigma Theta Tau nursing honor society. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2.

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement