Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default database
Message
De
15/01/1999 09:29:34
 
 
À
13/01/1999 14:39:28
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00175617
Message ID:
00176452
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform