i would like to do the following and was wondering of anyone could direct me to code on the web that would help me accomplish the task:
we maintain several databases on a sql server 7.0
--lets call them db1, db2, db3
db1 is the primary db we use and we add users there and then associate them with lets say usergroup1.
its too much work for someone to go and add those users to db2 and db3 as well, so i need to write a script that will check db1 for new users then check db2 and db3 to make sure the users are not there then create those users on db2 and db3 - when i create them on db2 and db3, i will need to associate them the usergroup1 on each db as well.
i will create a job to execute the script nightly so this is done on a daily basis.
any direction you could give would be appreciated.
thanks
we maintain several databases on a sql server 7.0
--lets call them db1, db2, db3
db1 is the primary db we use and we add users there and then associate them with lets say usergroup1.
its too much work for someone to go and add those users to db2 and db3 as well, so i need to write a script that will check db1 for new users then check db2 and db3 to make sure the users are not there then create those users on db2 and db3 - when i create them on db2 and db3, i will need to associate them the usergroup1 on each db as well.
i will create a job to execute the script nightly so this is done on a daily basis.
any direction you could give would be appreciated.
thanks