Grant Permission to CREATE tables - SQL Server

后端 未结 2 358
花落未央
花落未央 2021-01-04 00:11

What is the SQL command for giving a user permissions to create (and delete) tables? I am looking for something similar to this:

GRANT INSERT, UPDATE, SELE         


        
相关标签:
2条回答
  • 2021-01-04 00:54

    Two Options

    1. GRANT CREATE TABLE TO Joe AS dbo
    2. Add the user to the fixed database role: db_ddladmin
    0 讨论(0)
  • 2021-01-04 01:02

    When I googled, I got right to TechNet. It looks like you want:

    GRANT CREATE TABLE
    

    As in:

    USE AdventureWorks2012;
    GRANT CREATE TABLE TO MelanieK;
    GO
    
    0 讨论(0)
提交回复
热议问题