Link to home
Start Free TrialLog in
Avatar of dfr031260
dfr031260

asked on

Problems with Grant Create Table on a database

Have granted create table to a SQL Server userid, and when I check the userid in Management Studio the grant is in place, but when I attempt to create a table as this user I get:

The specified schema name "dbo" either does not exist or you do not have permission to use it.

What am I missing...

Dav
create table dbo.testerito
(testid int)
go

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada 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
Hi
with this Query you can sure for your permissions
thanks
SELECT * FROM sysobjects a
LEFT JOIN syspermissions b
ON a.id=b.id
WHERE a.xtype='P'
AND b.id IS NULL 

Open in new window

the error means what it says: the user cannot create a table in the schema dbo.
you would need to add the role db_owner to that user, granting that user full access to the database.
Avatar of dfr031260
dfr031260

ASKER

Worked like a charm...Thanks