Re: New DBs DBO does not have an associated login name
From: Kalen Delaney (replies_at_public_newsgroups.com)
Date: 02/09/04
- Next message: James Goodman: "Re: VB ADO error after upgrading to SQL Server 2000"
- Previous message: Don H: "Installation Guide"
- In reply to: KJ: "Re: New DBs DBO does not have an associated login name"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Feb 2004 08:25:01 -0800
Ok, so the database does have an owner. EM uses a different query to extract
the owner name, and if is an owner that that is actually a member of an NT
group, so that they don't have their own entry in syslogins, EM will not
show the name. This could be considered a bug in EM, if you want to call PSS
about it.
There is no way to force EM to display the owner name without insisting that
MS issue a fix.
There are two alternatives
1. Add the NT login as a valid login in its own right, and put it in the
sysadmin server group. (I am assuming the current login should be in that
group.)
2. Change the owner using sp_changedbowner to a login name that exists
in syslogins.
-- HTH ---------------- Kalen Delaney SQL Server MVP www.SolidQualityLearning.com "KJ" <armchairqb2000!@hotmail.com> wrote in message news:uPeYEXx7DHA.1592@TK2MSFTNGP10.phx.gbl... > When I run the stored proceedure I get the NT username that I was logged in > to when I created the DB. But under Enterprise Manager when I drill down to > the DB and select users the DBO has no associated logon. Under SQL 7 when I > created a new DB it would show the DBO in that location. > > > "Kalen Delaney" <replies@public_newsgroups.com> wrote in message > news:##xb8Bf7DHA.3880@tk2msftngp13.phx.gbl... > > Hi KJ > > > > How are you determining that there is no associated login name? What do > you > > get when you run > > > > exec sp_helpdb <name of database> > > > > -- > > HTH > > ---------------- > > Kalen Delaney > > SQL Server MVP > > www.SolidQualityLearning.com > > > > > > "KJ" <armchairqb2000!@hotmail.com> wrote in message > > news:#V3Y2fb7DHA.2480@TK2MSFTNGP12.phx.gbl... > > > When I create a new DB on a new SQL 2000 server I have it adds the DBO > but > > > does not have an associated login name. How do I fix this? > > > > > > Thanks, > > > > > > KJ > > > > > > > > > > > >
- Next message: James Goodman: "Re: VB ADO error after upgrading to SQL Server 2000"
- Previous message: Don H: "Installation Guide"
- In reply to: KJ: "Re: New DBs DBO does not have an associated login name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|