2015-09-18 14 views
0

我們網絡中的一位用戶需要訪問sql server database的一個表。由於它是Windows Authentication,我在Security\Logins中創建了用戶,並且我已經爲該數據庫添加了用戶Security\Users。我也添加了權限。檢查Windows身份驗證用戶在sql server 2008中是否具有正確的權限?

現在我想測試它。如果我沒有這個用戶的密碼,我該怎麼做?顯然,他不會把它交給我。

謝謝。

回答

0
Execute As User = 'domain\Name'; 
-- Perform the test - use a Transaction if you need to test data modifications 
Select * From schema.table; 
Revert 
相關問題