I have made a batch script (embedded with a sql script) which makes a copy of de production-database to the test data-base every day. In this script the environment specific variables are set to the right values.
Now I want to give some users more user rights in the test environment. In other words I want to assign a specific role to a specific user. How to do that? Is this possible in sql or powershell script?