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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Simple permissions question, what am I missing?

Author  Topic 

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2012-01-16 : 07:14:44
I'm trying to give a database role permission for all the crud operations on a particular table, when I use

GRANT ALL ON MyTable TO MyRole as dbo

I get a message about ALL being deprecated but no indication of what has replaced it, can't see anything in bol either, am I missing something or do I now have to type it out explicitly? i.e.

GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON MyTable TO MyRole as dbo

thanks

steve

-----------

What color do you want that database?

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-01-16 : 07:50:05
There is a description here: http://msdn.microsoft.com/en-us/library/ms188371.aspx

What permissions are granted varies.
Go to Top of Page
   

- Advertisement -