September 14, 2012 at 10:05 am
I've granted ALTER to the schema, but user still can't create table.
CREATE TABLE ato.test1
(First_Name char(50),
Last_Name char(50))
Error is: CREATE TABLE permission denied in database 'NameOfDatabase'.
How to grant permission to create a table in one schema, however not any where else within the database?
We have always used dbo --the default schema-- and now creating schemas to avoid additional databases so new adventure here.
Thanks.
September 14, 2012 at 12:14 pm
CREATE TABLE is a control permission, not an alter permission. Alter is implied by having control.
Use this:
GRANT CONTROL ON SCHEMA::<mySchema> TO <myLogin>
You can only use the "CREATE TABLE" permission specifically when you are not stating a schema, which leads me to believe that it's an "all schemas or no schemas" type of permission.
Also verify that the user's default schema is the schema upon which (s)he is creating tables.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply