why I can't remove guest in user database

Posted on 2009-04-20
Last Modified: 2012-05-06
Try to remove guest user and it prompt below error msgs, anyone know how do I remove this from user db ?

TITLE: Microsoft SQL Server Management Studio

Drop failed for User 'guest'.  (Microsoft.SqlServer.Smo)

For help, click:


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


User 'guest' cannot be dropped, it can only be disabled. The user is already disabled in the current database. (Microsoft SQL Server, Error: 15539)

For help, click:


Question by:motioneye
    LVL 31

    Assisted Solution

    is there any specific reason you want to delete it? you can disable "GUEST" and it is even recomended for the user by default comes with SQL Server.
    LVL 31

    Accepted Solution

    see what microsoft is saying about this.

    you can't remove it.

    LVL 142

    Assisted Solution

    by:Guy Hengel [angelIII / a3]
    as the message says:
    User 'guest' cannot be dropped, it can only be disabled.
    LVL 4

    Assisted Solution

    This is a system user.  You cannot drop it.  It is used to assign default permissions to any login.
    So do not bother with it.   If this is required by your security policy or for any other reason, just disable it and that is all.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Introduced in Microsoft SQL Server 2005, the Copy Database Wizard ( is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
    Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
    Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now