guest user account in sql server

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?
motioneyeAsked:
Who is Participating?
 
Raja Jegan RConnect With a Mentor SQL Server DBA & ArchitectCommented:
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>
GO
EXEC sp_revokedbaccess 'guest'
GO

SQL Server 2005

USE <Database Name>
GO
REVOKE CONNECT FROM GUEST
GO
0
 
Luan JubicaProject ManagerCommented:
Yes,
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.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.