October 23, 2007 at 10:25 am
Is there some way, and if so, what is it, to change the default database from master to a database of my choice when I open Query Analyzer? That is, something besides using the dropdown after QA opens.
[font="Comic Sans MS"]Vic[/font]
www.vicrauch.com
October 23, 2007 at 10:36 am
Look up sp_defaultdb in BOL. Basic syntax is
sp_defaultdb [ @loginame = ] 'login', [ @defdb = ] 'database'
October 23, 2007 at 10:58 am
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy