Revoking Privileges based on a Grantor
Greetings -
I have a user, lets call him [MIKE] who has some privileges he needs to keep and others needs to be revoked. But since he has too many privileges and since I know the [GRANTOR] name which is [SMITH], I wanted to see if there is a quick way to revoke all privileges - I don't care what privileges they are as long as they were granted by [SMITH] to [MIKE] and not to touch any other privileges..
It would be very helpful If I can put this into a dynamic script so I can inspect what it is going to happen before I run the revoke query..