SQL SERVER Database (Schema/Table) Permission Issue

  • I have created a schema in SQL Server using following permissions on my database role:

    CREATE ROLE myrole AUTHORIZATION dbo;

    EXEC sp_addrolemember 'myrole', 'myuser';

    CREATE SCHEMA myschema AUTHORIZATION dbo;

    GRANT ALTER, CONTROL, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::myschema TO myrole;

    GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO myrole;

    Through the above defined permissions a user can create/drop his own schema, so to overcome the problem I tried the ALTER ANY SCHEMA permission. But this permission also denies the user to create/drop tables. What permissions are required in order to allow the user to do anything within his own schema but cannot create or drop the schema itself?

  • Please help me.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply