all groups > sql server connect > june 2006 >
You're in the

sql server connect

group:

Create SQL 2000 user accounts with a script



Create SQL 2000 user accounts with a script spburke
6/29/2006 12:28:02 PM
sql server connect: Is it possible to create multiple user accounts within SQL 2000 via a
script? We have a database on a development server that is overwritten
every night. I would like to be able to create a script to create the user
accounts needed. Any help or guidance would be appreciated. Thank you.
Re: Create SQL 2000 user accounts with a script Scott Morris
6/29/2006 3:49:36 PM
[quoted text, click to view]

Sure - lookup sp_addlogin and sp_grantdbaccess in BOL. It's likely that you
only need to grant existing logins access to the recreated database. I also
suggest reviewing sp_change_users_login - this will allow to synchronize the
users in the restored database with the correct login.

Re: Create SQL 2000 user accounts with a script Arnie Rowland
6/29/2006 5:49:31 PM
It's very easy to write a script to do this, and then to set up a SQL Job to
run the script sortly after the database is replaced.

--
Arnie Rowland, YACE*
"To be successful, your heart must accompany your knowledge."

*Yet Another Certification Exam


[quoted text, click to view]

RE: Create SQL 2000 user accounts with a script James Vickers
7/11/2006 2:02:01 PM
scott,

email me at jrvickers@hotmail.com (subject:msdn) and i'll email you back the
VBSCript file I use to create server databases and accounts for my network. I
use it in conjunction with creating user accounts on our w2k3 AD Domain.

Jamie.

[quoted text, click to view]
AddThis Social Bookmark Button