guest user account in sql server

Posted on 2009-04-06
Last Modified: 2012-05-06
I wonder how this "guest" user exist in the db, I never create it, will this guest user available to veery db that we created?
Question by:motioneye
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 24075183
Every new database is a restore of the model database, if dont want the user to be in every database remove from the model database.

LVL 57

Accepted Solution

Raja Jegan R earned 500 total points
ID: 24075270
The guest user account is in both SQL Server 2000 and 2005 and it has been around since the SQL Server 6.5 days and probably earlier.  
This user account is used by SQL Server to access objects across databases if explicit rights are not granted.  
This account is relied on for some SQL Server 2000 system functions (master and tempdb) and needs to be maintained for SQL Server to function properly.  
Unfortunately, in some respects the guest user account can be a considered a threat from an application perspective that can be resolved in user defined databases.

To revoke access of guest user account:

SQL Server 2000

USE <Database Name>
EXEC sp_revokedbaccess 'guest'

SQL Server 2005

USE <Database Name>

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

738 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