ananthtecho
SSC Enthusiast
Points: 192
More actions
May 10, 2011 at 3:19 pm
#250564
Hi,
Is there any script to give read, write and execute access to a particular user? Please let me know.
Thanks
alalani
Points: 183
May 10, 2011 at 3:55 pm
#1322672
USE [MyDB]
GO
EXEC sp_addrolemember N'db_datareader', N'username'
EXEC sp_addrolemember N'db_datawriter', N'username'
Grant Execute to 'username'
Welsh Corgi
SSC Guru
Points: 116520
May 10, 2011 at 4:00 pm
#1322673
GRANT Permissions at the schema level or the Object level.
For better, quicker answers on T-SQL questions, click on the following...http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply