Home > Archive > MS SQL Server > March 2006 > Can not drop a member from a role









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can not drop a member from a role
avni.cengel@gmail.com

2006-03-10, 7:23 am

I've just changed server from SQL2000 to SQL2005 (by backup/restore).
But I can not drop a user from a role. I did it from Management Studio.
It didn't give any error message but even I refresh the db, I can still
see same user in the role.

Then I've tried sp_droprolemember 'X','Y' but same result. Does not
give any error message, looks like it did it. But user is still in the
role.

Even I'm server admin, I can not do it. I'll be happy if someone can
help me to solve the issue.

Thx
Avni

Tom Moreau

2006-03-10, 7:23 am

Check out sp_change_users_logi
n. Run it to find the mismatched users, as
well as to correct the problem. Then, drop the role member.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
<avni.cengel@gmail.com> wrote in message
news:1141984205.157637.62570@u72g2000cwu.googlegroups.com...
I've just changed server from SQL2000 to SQL2005 (by backup/restore).
But I can not drop a user from a role. I did it from Management Studio.
It didn't give any error message but even I refresh the db, I can still
see same user in the role.

Then I've tried sp_droprolemember 'X','Y' but same result. Does not
give any error message, looks like it did it. But user is still in the
role.

Even I'm server admin, I can not do it. I'll be happy if someone can
help me to solve the issue.

Thx
Avni

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com