Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 can restrict permissions

Author  Topic 

boreddy
Posting Yak Master

172 Posts

Posted - 2008-08-29 : 01:41:15
HI

Have one database it has lot of tables, these are accessing many users( all access)

how can we restrict access to user throw script
here i want to give read permission to some users, write permissions to some users, all permission to some user
i need the script to do all

please hlp me

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-29 : 02:46:05
You can use the GRANT statement to grant your permissions. You could also leverage db_datareader and db_datawriter database roles to save you some time.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -