Here is another one of those files that just floats around in a
SqlScripts directory on my computer. I've found this script useful many
times. This was written by Clinton Herring many moons ago. This script
will remove a login from Sql Server. What's so fancy about the script?
Well, the script takes care of going through each database and removing
this login's permissions and object ownership (at least as much as
possible) so you don't have to spend time searching and searching for
this owner throughout all the databases on a server. You'll want to
make note of the comments Clinton has left in the header, as there is
important information on the behavior and actions taken when a scenario
is encountered. One such scenario is: when a login you want to remove
owns a database, that database ownership is given to 'sa'.