tags:

views:

15

answers:

2

Hi,

Is there anyway using query that I can assign permissions to user in a SQL Server database?

Thanks

+4  A: 

GRANT exists even for MsSQL. http://msdn.microsoft.com/en-us/library/ms188371.aspx

joni
USE TestCREATE USER MyUser FOR LOGIN MyUserEXEC sp_addrolemember 'db_datareader', 'MyUser'
Emaad Ali
+2  A: 

You can use the T-Sql Statement GRANT

Here you can find general documentation on GRANT

While Here you can find the page specific for user privlege

il_guru