Re: db_denydatawriter



Ant (Ant@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Hi Erland, sorry for the late response. I had to wait till Monday to be
back in the office.

I did an update on her PC logged in as her & I could update, so yes,
deny_Writer is not restricting her to Update .

I checked her permissions & she definitely has only Public,
db_denyWriter & db_reader.

When I ran sp_who2, I could see her login & her host name.

Sorry to be vague about this but I really am not sure why she can Update.

Can you run this query in the database in question:

select g.name, u.name
from sysusers u
join sysmembers m ON u.uid = m.memberuid
join sysusers g ON g.uid = m.groupuid
where u.name = 'herusername'

Also run this:

SELECT xstatus FROM master..sysxlogins WHERE name = 'herlogin'

Is she using an SQL login or a Windows login?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: User Question
    ... and write capabilities. ... Should that be an SQL login or Windows login? ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Unexpected Login Screen When Accessing SQL Data Via .NET Intra
    ... >> data and the SQL Server is on the same server. ... >> My problem is that one user has started getting a login popup ... >> right in via Windows Authentication like everyone else and like they ...
    (microsoft.public.sqlserver.connect)
  • Re: cannot acees two databases as owner
    ... it does not matter you are a member of the ... the sysadmin fixed server role or if there is no any other Login which is ... group if it's a domain) and you can login to your SQL Server with, ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL 2005 express blank sa passwords
    ... that uses the Sa login, I need to set the password to blank. ... I suggest that you get a voodoo doll of that former DBA, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Database security design with ASP.net and form-based authentication
    ... Since you already have forms-based security, why not use a single SQL login ... for all database access? ... data entry, guest/view only, admin, report viewer. ... so I'm using SQL Server authentication. ...
    (microsoft.public.sqlserver.security)