Re: The name 'guest' was not found in the Users collection

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 03/25/04


Date: Thu, 25 Mar 2004 08:48:48 -0600

I haven't seen this error for the guest user before. Guest is not
associated with a login so there shouldn't be an orphaned user issue. The
only thing I can think of is that the guest was removed by updating system
tables directly.

You might try adding the guest user to the problem database(s) using
sp_adduser 'guest'. For databases other than master and tempdb (where the
guest user must be enabled), you can then disable 'guest' with sp_dropuser
if your users don't need to access the database(s) via guest.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Mike B." <anonymous@discussions.microsoft.com> wrote in message
news:133ea01c41273$cf421510$a401280a@phx.gbl...
> Error 21776: [SQL-DMO]The name 'guest' was not found in
> the Users collection. If the name is a qualified name, use
> [] to separate various parts of the name, and try again.
>
> I inherited a SQL server with orphaned guest users.  Has
> anyone seen this error before?  Any ideas on fixing the
> problem?


Relevant Pages

  • Re: SQL Default Login?
    ... Would it pose a security concern if the default login is ... I mean having a guest user is as good as allowing ... >they haven't been explicitly granted database access. ...
    (microsoft.public.sqlserver.security)
  • Re: Lets me in as a Guest only
    ... Add your windows user in SQL Server access list. ... You can remove the guest user account from all database ...
    (microsoft.public.sqlserver.security)
  • Re: Newbie-friendly setup
    ... > I believe I have pretty much all of KDE and Gnome installed on my ... > gentoo computers, which I'm running in runlevel 3. ... > as the guest user, eventually start the user interface, and leave the ...
    (comp.os.linux.misc)
  • Re: Cannot access shared folders
    ... >Guest user and you have to type a password. ... >Even if i disable the guest account only Guest appears in the username. ... Is the specific computer running Simple File Sharing (either XP Home, or XP Pro ...
    (microsoft.public.windowsxp.network_web)
  • Re: Getting to the bottom of MSDE network connection problems ...
    ... Brilliant, Nick, especially the explanation for local network user being ... authenticated as GUEST in WinXP SP2. ... > on a desktop OS like XP (meaning that, you can not compare SQL Server ... > again and selected the security tab. ...
    (microsoft.public.sqlserver.msde)