February 5, 2008...9:11 am

Setting your default database in SQL Server Management Studio

Jump to Comments

set default database

Another quick server management studio quick tip. We had just set up a test server for our project, but everytime I used SQL server management studio, and ran a query, it would run it on Master database and not on our database. Just for convenience, you can set up the default DB as so:

1. In your object explorer > Expand Security > Expand Logins
2. Right click your login (in this case WeiL) and select ‘Properties’
3. Under General, you will see a drop down called “Default Database”
4. And ta-da! its done. :)

4 Comments


Leave a Reply