Information_Shema as a user in Master database

Information_Shema as a user in Master database

Post by Yife » Sat, 10 Dec 2005 14:32:46

Hi, All

Recently, I was running a script like:

declare @sql nvarchar(4000)
declare @db sysname ; set @db = DB_NAME()
declare @u sysname ; set @u = QUOTENAME('db_executor')

set @sql ='select ''grant exec on '' + QUOTENAME(ROUTINE_SCHEMA) + ''.'' +

exec master.dbo.xp_execresultset @sql,@db

to grant stored procedures execution permition to role, after running the
script, the privilige is grant it to that role, but I got very strange
things happened on sql server.

1. Master database get Information_Shema as a user. dbaccess "via group
2.Master database got system_function_schema as a user , dbaccess "via group
3.guest user show in every database in the instance, dbaccess "via group
if I delete guest account, show me message "the user is not in
database", sp_helpuser did not show guest user, enterprice manager show it
as a user.
4. run sp_grantdbaccess guest. the guest get permitted to use database. I
delete it successful, however, a couple minutes later, it appears in the db
as dbaccess via group membership.

it is really painful for me. could anyone give me a hint to fix the problem?

any help is appreciated.



Information_Shema as a user in Master database

Post by Scot » Tue, 13 Dec 2005 10:45:34

Hi, All,

I think this is an issue for sql 2005, because the when I open em from db
server, the information_schema user does not show, but I connect it through
a remote machine that installed sql 2005, and the user showed.

same as another machine that did not run the script and did installed sql