Link to home
Start Free TrialLog in
Avatar of Morpheus7
Morpheus7

asked on

Table create permissions on SQL Server 2005

Hi,

How would I grant create and alter table to a role in SQL Server 2005?  The development team wish to use the Entity Framework in their application and this requires that role has the create and alter table permissions. Any guidance would be appreciated.

Thanks
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Try..

USE YourDBName;  
GRANT CREATE TABLE TO Pawan;  
GO

USE YourDBName;  
GRANT ALTER TABLE TO Pawan;  
GO


Note - Pawan is your user name
Avatar of Morpheus7
Morpheus7

ASKER

Hi,

Many thanks for the response. I have given the role create table permissions, but they are still unable to create a table. I am unable to apply the alter script.

Thanks
This means you do not have access to perform  these operations.

Are you the admin on the SQL Server. Also ask the person to disconnect SSMS and connect again.
Hi,
I am sa on the server. I have asked the user to disconnect and reconnect but the error persists.

Thanks
Can you please provide me the screen shot the current access setting he has ?
Hi,

One thing I have realises is that role that requires access does not have a schema associated with it. Should it have one?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's great, many thanks.
Welcome Morpheus !!