2013-04-07 139 views
1

在SQL Server數據庫有:隱藏在SQL Server數據庫架構的登錄/用戶

  • 2模式:dbocustomized_schema
  • 2個用戶:sastandard_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,期待中忽視了客戶的特徵。

回答

0

DbDefence可以隱藏模式,表結構等 據我所知,他們使用SQL Server的未公開的功能。沒有辦法以書面的方式做到這一點。 對於小於200 Mb的數據庫,DBDefence是免費的