日期:2014-05-18  浏览次数:20381 次

使用dll语句将在northwind数据库上建表的权限授user用户
grant create table on northwind to user; 
不知道为什么不可以; 
总是提示on附近有错误;

------解决方案--------------------
grant create table to 角色

------解决方案--------------------
GRANT 系统对象权限 (Transact-SQL)
http://technet.microsoft.com/zh-cn/library/ms187797.aspx
授予对系统对象(例如,存储过程、扩展存储过程、函数以及视图)的权限。 

 Transact-SQL 语法约定

 语法 
SQL code

GRANT { SELECT | EXECUTE } ON [ sys.]system_object TO principal