授予创建表的权限 - SQL Server

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22692024/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 01:28:59  来源:igfitidea点击:

Grant Permission to CREATE tables - SQL Server

sqlsql-server

提问by w0051977

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

授予用户创建(和删除)表权限的 SQL 命令是什么?我正在寻找类似的东西:

GRANT INSERT, UPDATE, SELECT ON Customers TO Joe

I have spent some time Googling for the answer.

我花了一些时间在谷歌上搜索答案。

回答by Karl Kieninger

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

当我用谷歌搜索时,我直接访问了TechNet。看起来你想要:

GRANT CREATE TABLE

As in:

如:

USE AdventureWorks2012;
GRANT CREATE TABLE TO MelanieK;
GO

回答by Eelco Drost

Two Options

两种选择

  1. GRANT CREATE TABLE TO Joe AS dbo
  2. Add the user to the fixed database role: db_ddladmin
  1. GRANT CREATE TABLE TO Joe AS dbo
  2. 将用户添加到固定数据库角色: db_ddladmin