Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Script to Add User to all Databases

    That script doesn't actually work. But here is one that will:

    exec sp_msforeachdb 'use [?]; CREATE USER [UserName] FOR LOGIN [UserName];EXEC sp_addrolemember db_datareader, [UserName]'

Viewing post 1 (of 1 total)