PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Can't remove user from role(s)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Can't remove user from role(s)

Réponse
 
LinkBack Outils de la discussion
Vieux 12/06/2008, 16h12   #1
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can't remove user from role(s)

Back in February, I had a problem removing a user from a role and
ended up deleting and re-creating the user.

Now, on another server in a different environment, I am having the
same problem.

History:
We added a new login ("fred") and added them to a database
(exampleDB).

Then, we added the user to db_datareader/writer in exampleDB.

A new role was created ('XYZ") in exampleDB and we added the user to
the role. We added the role to db_datareader/writer.

Now, when we try to remove "fred" from db_datareader/writer, it
appears that he's being dropped, but when we go back into the role,
he's still there. We've dropped him using the GUI, via TSQL, from the
role properties, from the login properties, etc.

I can see the sp_droprolemember execute in profiler, but I don't see
it added back in. The user was not logged in at the time of the
attempt.

I've run sp_change_users_login 'Report' and got no results, either.

I can add/remove them from roles that I've created. I can add/remove
them from db_accessadmin.

Microsoft SQL Server 2005 - 9.00.3175.00 (Intel X86) Jun 14 2007
09:20:57 Copyright (c) 1988-2005 Microsoft Corporation Enterprise
Edition on Windows NT 5.2 (Build 3790: Service Pack 2)

Any suggestions would be appreciated.
  Réponse avec citation
Vieux 12/06/2008, 17h12   #2
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can't remove user from role(s)

Some more information:

If I drop the new role from db_datareader, the user gets dropped from
the db_datareader role, too. If I add the role back in, the user gets
added in themselves, too.

I emptied/dropped the new role, and re-created it, then added the user
back in, and when I add it to db_datareader, the user gets added too
(so that the role AND the user appear in db_datareader).





On Jun 12, 10:12am, Chris <cbtechli...@gmail.com> wrote:
> Back in February, I had a problem removing a user from a role and
> ended up deleting and re-creating the user.
>
> Now, on another server in a different environment, I am having the
> same problem.
>
> History:
> We added a new login ("fred") and added them to a database
> (exampleDB).
>
> Then, we added the user to db_datareader/writer in exampleDB.
>
> A new role was created ('XYZ") in exampleDB and we added the user to
> the role. We added the role to db_datareader/writer.
>
> Now, when we try to remove "fred" from db_datareader/writer, it
> appears that he's being dropped, but when we go back into the role,
> he's still there. We've dropped him using the GUI, via TSQL, from the
> role properties, from the login properties, etc.
>
> I can see the sp_droprolemember execute in profiler, but I don't see
> it added back in. The user was not logged in at the time of the
> attempt.
>
> I've run sp_change_users_login 'Report' and got no results, either.
>
> I can add/remove them from roles that I've created. I can add/remove
> them from db_accessadmin.
>
> Microsoft SQL Server 2005 - 9.00.3175.00 (Intel X86) Jun 14 2007
> 09:20:57 Copyright (c) 1988-2005 Microsoft Corporation Enterprise
> Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
>
> Any suggestions would be appreciated.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h31.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08826 seconds with 10 queries