1
在SQL Server數據庫有:隱藏在SQL Server數據庫架構的登錄/用戶
- 2模式:
dbo
和customized_schema
- 2個用戶:
sa
和standard_user
在模式[customized_schema]
下,有實體具有我的標準應用程序的自定義功能。
我想否定用戶standard_user
模式customized_schema,但我想要甚至隱藏表,視圖,代碼從函數和存儲過程的結構。
我已經試過,但不起作用:
DENY UPDATE ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY TAKE OWNERSHIP ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY CONTROL ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY EXECUTE ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY DELETE ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY INSERT ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY ALTER ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY REFERENCES ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY SELECT ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY VIEW DEFINITION ON SCHEMA::[customized_schema] TO [standard_user]
GO
DENY VIEW CHANGE TRACKING ON SCHEMA::[customized_schema] TO [standard_user]
GO
我想比較的數據庫(與Visual Studio 2012 SSDT)和部署的變化使用standard_user
,期待中忽視了客戶的特徵。