Robert Lu
SSCrazy
Points: 2488
More actions
May 23, 2003 at 5:58 am
#159972
Need more help.
How to change default db from QA? Thanks!
Robert
Frank Kalis
SSC Guru
Points: 111183
May 23, 2003 at 6:10 am
#458331
Hi Robert,
try sp_defaultdb
sp_defaultdb [ @loginame = ] 'login' , [ @defdb = ] 'database'
Also see BOL
Cheers,
Frank
--Frank KalisMicrosoft SQL Server MVPWebmaster: http://www.insidesql.org/blogsMy blog: http://www.insidesql.org/blogs/frankkalis/[/url]
May 23, 2003 at 7:04 am
#458340
Thank you again, Frank. I changed the registration.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply