0
我只是這樣做:爲什麼使用GRANT ALL拒絕執行權限?
sqlcmd -E -S .\SQL_EXPRESS
USE master;
GO
CREATE LOGIN [BUILTIN\Users] FROM WINDOWS;
GO
USE PMInfrastructure;
GO
CREATE USER [BUILTIN\Users] FROM LOGIN [BUILTIN\Users];
GO
CREATE ROLE rCetrus;
GO
ALTER ROLE rCetrus ADD MEMBER [BUILTIN\Users];
GO
GRANT ALL TO rCetrus
GO
,然後進行了一些代碼,並得到這個:
The EXECUTE permission was denied on the object 'InstallInfo_GetLatest', database 'PMInfrastructure', schema 'dbo'.
我以爲GRANT ALL授予的一切???
[SQL Server中 「GRANT ALL TO作用」]的可能的複製(http://stackoverflow.com/questions/338445/grant-all-to-role-in-sql-server ) – GSerg