sql server - .net publish to prover creates 'unwanted' role -
i using publish provider feature in .net 2008 produce database creation script.
in script exists following line:
/****** object: role [srvttas] script date: 01/20/2010 09:14:14 ******/ if not exists (select * sys.database_principals name = n'srvttas') begin if not exists (select * sys.database_principals name = n'srvttas' , type = 'r') create role [srvttas]
this causes problem have user called "srvttas" setup in database, , not role. when run script have manually delete role in order create user of same name. means script produced not create exact copy of database in question, there way make publish provider create user? (as have specified in database?)
the name of "principal" in database must unique. roles , users both principals.
does publisher have bug? or perhaps can't distinguish principals correctly (for example, metadata visibility)?
anyhow, using srvttas for? permissioning, should role anyway database user in role.
Comments
Post a Comment