Scripting all permissions in a SQL Server database is not trivial. Discover how to generate the necessary statements yourself with this simple query.