Check out Sivakumar's post on SQL Script for Account Level Security

till later,