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

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
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.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

760 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

19 Experts available now in Live!

Get 1:1 Help Now