Bulk User Creation

  • Does anyone know of a way (scripts or otherwise) to automate the creation of user accounts with sql authentication in bulk. I am having to learn SQL Server 2000 as I go and my current task is creating SQL logins for all the users accessing the applications that use the database. The software vendor of the application requires me to use SQL authentication instead of AD authentication. I have somewhere between 200 and 300 accounts to create and doing them one at a time is time consuming to say the least.

    Any help would be appreciated.


    Brad Townsend

  • Brad,

    you can use the sp_adduser, sp_grantdbaccess and sp_addrolemember system stored procs to create the accounts and set up their access.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply