Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default database
Message
From
15/01/1999 09:29:34
 
 
To
13/01/1999 14:39:28
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00175617
Message ID:
00176452
Views:
29
>Is there a way to set the default database in the SQL Query Tool? I always end up having run my script on the master database.

You can configure your SQL Server login to use your user database as the default for your login. The easiest way is to go through the EM and edit your login.

You could also try using the sp_defaultdb system stored procedure.

sp_defaultdb loginname, newdefaultdatabase

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform