使用 SQL Server 2008 中的安全性,我试图授予用户 CREATE TABLE 权限,但仅限于特定架构内。CREATE TABLE 权限是否仅适用于数据库级别?
我可以限制用户仅在架构内创建表吗?
我试过了:
USE [databasename]
GRANT CONTROL ON Schema :: [schemaname] TO [username]
GO
Run Code Online (Sandbox Code Playgroud)
和
USE [databasename]
GRANT ALTER ON Schema :: [schemaname] TO [username]
GO
Run Code Online (Sandbox Code Playgroud)
但是,用户仍然无法在目标模式中创建表。直到我运行这个,用户才能创建一个表:
USE [databasename]
GRANT CREATE TABLE to [username]
GO
Run Code Online (Sandbox Code Playgroud)
可能重复:
你能帮我解决我的软件许可问题吗?
我目前正在为 SQL Server 2008 开发高可用性解决方案。我有 2 台服务器,拥有 1 个标准版 SQL Server 许可证。您可以仅使用 1 个许可证来实现日志传送吗?例如,如果您在第二台机器上安装了 SQL,但没有运行,并且主服务器将日志发送到备份?
backup high-availability licensing sql-server sql-server-2008
据我所知,此错误通常是由 Reporting Services 引起的,但该服务器上未安装 Reporting Services。为什么 net stop http 不能完全工作有什么想法吗?
C:\Users\Administrator>net stop http
The following services are dependent on the HTTP service.
Stopping the HTTP service will also stop these services.
Web Management Service
World Wide Web Publishing Service
Print Spooler
Web Deployment Agent Service
Function Discovery Resource Publication
Do you want to continue this operation? (Y/N) [N]: y
The Web Management Service service is stopping.
The Web Management Service service was stopped successfully.
The World Wide Web Publishing Service …Run Code Online (Sandbox Code Playgroud)