Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Login gets deny permission Expand / Collapse
Author
Message
Posted Monday, September 14, 2009 2:16 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 3:03 AM
Points: 202, Visits: 321
On our test server – the SQL 2005 default instance, somehow every now and then the permission using login 'TestLogin' is getting changed for two databases.

This user should have db_datareader but every now and then the user gets db_datareader and db_denydatareader permissions set for two databases.

Please help, with suggestions

Post #787235
Posted Monday, September 14, 2009 4:46 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 6:50 AM
Points: 2,719, Visits: 1,065
rinu philip (9/14/2009)
On our test server – the SQL 2005 default instance, somehow every now and then the permission using login 'TestLogin' is getting changed for two databases.

This user should have db_datareader but every now and then the user gets db_datareader and db_denydatareader permissions set for two databases.

Please help, with suggestions




hmm, unless you have manual changes going on, could be an auditing issue, do you have any sql jobs that re-evaluate logins/permissions, or do you have any triggers set up, either at the database or server level..

Ah, are these databases being restored from a production server on a periodic basis, where the permissions for that login would be different?


--------------------------------------------------------------------------------------
Recommended Articles on How to help us help you and
solve commonly asked questions

Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden
Managing Transaction Logs by Gail Shaw
How to post Performance problems by Gail Shaw
Help, my database is corrupt. Now what? by Gail Shaw
Post #787315
Posted Monday, September 14, 2009 5:13 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 3:03 AM
Points: 202, Visits: 321
thanks, i will check with the suggestions specified,however, can you tell me if I run a trace can I find out how this is happening, also what options I need to select in the sql trace. thanks
Post #787333
Posted Monday, September 14, 2009 5:24 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 6:50 AM
Points: 2,719, Visits: 1,065
rinu philip (9/14/2009)
thanks, i will check with the suggestions specified,however, can you tell me if I run a trace can I find out how this is happening, also what options I need to select in the sql trace. thanks


Ok, not sure that a trace would be the best thing, depends on how long you can leave it running, but to answer your question.

The event group is Security Audit, and for example...
Audit Add member to DB Role Event


depends on what information you want to retrieve, but the events in that group will give you what you need.


to be honest, if this is a test server, you can manually add and remove the db permissions for this login while the trace is running, until you are happy with the information that you are getting.


--------------------------------------------------------------------------------------
Recommended Articles on How to help us help you and
solve commonly asked questions

Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden
Managing Transaction Logs by Gail Shaw
How to post Performance problems by Gail Shaw
Help, my database is corrupt. Now what? by Gail Shaw
Post #787340
Posted Monday, September 14, 2009 6:27 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 3:03 AM
Points: 202, Visits: 321
thanks alot for your replies..
Post #787383
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse