我正在为数据库创建一个用户(first_user),该用户具有DDL权限,可以在特定模式上创建表,函数,SP,触发器等。所以我授予了以下权限:
GRANT VIEW DATABASE STATE TO first_user
GRANT ALTER ON SCHEMA :: [mySchema] TO first_user
GRANT EXECUTE ON SCHEMA :: [mySchema] TO first_user WITH GRANT OPTION;
GRANT ALTER ANY DATABASE DDL TRIGGER TO first_user
GRANT CREATE FUNCTION TO first_user
GRANT CREATE TABLE TO first_user
GRANT INSERT TO first_user
此用户(first_user)需要授予辅助用户权限,才能执行一些SP并读取一些由他创建的表。像
GRANT EXECUTE ON OBJECT::[mySchema].[mySp] TO second_user
GRANT SELECT ON OBJECT::[mySchema].[myTable] TO second_user
我缺少向此first_user授予哪些权限?