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 2005 Forums
 SQL Server Administration (2005)
 create table permsiiion

Author  Topic 

skybvi
Posting Yak Master

193 Posts

Posted - 2011-05-11 : 16:46:50

Hi,
I am trying to give a user (ccr) to create table permission in 1 of db's.

I ran this:-
grant create table to ccr

it says command done successfully
BUT
ccr cant create table now also.

Then, i ran:-
grant create table on schema::dbo to ccr

Then, it says

Msg 102, Level 15, State 1, Line 0
Incorrect syntax near 'CREATE TABLE..'.

How shld i give permissions :


Regards,
Sushant
DBA
West Indies

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-05-11 : 21:20:15
Add the user to ddladmin role
Go to Top of Page

skybvi
Posting Yak Master

193 Posts

Posted - 2011-05-12 : 09:28:09
Can you plz explain, how to do that

Regards,
Sushant
DBA
West Indies
Go to Top of Page

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2011-05-12 : 09:41:29
Login to SSMS -- > YourDatabase --> Security (tab) Right click on your desired user -- > Properties
--- > in Database Role Membership click on db_ddladmin and press OK

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page

skybvi
Posting Yak Master

193 Posts

Posted - 2011-05-12 : 10:30:32
Thanks...
But didn't the ddladmin role gives more permissions than just creating a table...I think it gives permissions to all ddl statemnts..
Am i right or correct me?


Regards,
Sushant
DBA
West Indies
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-05-12 : 11:15:53
>> grant create table to ccr <<

This should have worked. Do you have enough privelege yourself to grant?
Go to Top of Page

skybvi
Posting Yak Master

193 Posts

Posted - 2011-05-12 : 12:33:39
I am logging in as sa..
I guess it has all the privileges.


Regards,
Sushant
DBA
West Indies
Go to Top of Page
   

- Advertisement -