dbTalk Databases Forums  

config default "database"/"initial catalog"

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss config default "database"/"initial catalog" in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John A Grandy
 
Posts: n/a

Default config default "database"/"initial catalog" - 06-27-2008 , 01:21 PM






SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master" ?

Thanks.



Reply With Quote
  #2  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM






You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #3  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #4  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #5  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #6  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #7  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #8  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #9  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
  #10  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: config default "database"/"initial catalog" - 06-27-2008 , 02:33 PM



You can use the DEFAULT_DATABASE option of CREATE\ALTER LOGIN command to set
another default database for a Login.

ALTER LOGIN [EKREM-PC\Ekrem] WITH DEFAULT_DATABASE=[AdventureWorks]

--
Ekrem Önsoy



"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote

Quote:
SSMS 2005 :

Is there a way to configure the default "database"/"initial catalog" for
connections to a certain server/instance to something other than "master"
?

Thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.