views:

21

answers:

1

Is it possible to assign a DB role to a DB user in Sql Server 2008 using t-sql? If so, how?

+3  A: 

From BOL: exec sp_addrolemember @rolename = 'db role', @membername = 'db user'

Strommy
Thanks! Btw, what's BOL?
Asaf R
BOL = Books Online. It's the SQL Server help document. It's the best place to look this kind of thing up (it's actually the best help documentation I've seen on a piece of SW to date).
Strommy