數據控制語言語句可以進行安全性管理
GRANT語句是授權語句
(
GRANT {ALL | statement[
TO security_account[
Statement代表語句許可的類型
CREATE DATABASE
CREATE DEFAULT
CREATE PROCEDURE
CREATE RULE
CREATE TABLE
CREATE VIEW
BACKUP DATABASE
BACKUP LOG
(
GRANT{ALL [PRIVILEGES] | permission[
{
[ (Column[
| ON {table | view}[(column[
| ON {stored_procedure | extended_procedure}
}
TO security_account[
[WITH GRANT OPTION]
[AS {group | role}]
下面是一個實例
USE game
GO
GRANT SELECT
ON author
TO gamer
GO
GRANT INSERT
ON author
TO Mike
GO
GRANT CREATE TABLE
TO teacher
GO
right
From:http://tw.wingwit.com/Article/program/SQL/201311/16288.html