SQL Server, ad group as a user: dropping many users at once

Posted by jrara on Server Fault See other posts from Server Fault or by jrara
Published on 2010-06-10T05:30:10Z Indexed on 2010/06/10 5:33 UTC
Read the original article Hit count: 266

I have an AD group as a database user. When I try to drop this group from the database users, using

DROP USER [this_is_the_ad_group]

the group will be dropped but all the individual users in this group will not. How to delete this group and all its users at once?

© Server Fault or respective owner

Related posts about sql-server

Related posts about active-directory