我刚刚这样做了:
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全部授予了???
答案 0 :(得分:1)