資料庫還原完成後,您需要有使用者帳號才能從 WhatsUp 應用程式連線。以下示範步驟可建立名稱是 WhatsUpGold_User
、密碼是 P@ssw0rd
的帳號。這個使用者帳號的設定已經具備必要權限,能夠連接與使用 WhatsUp、NetFlow 和 NFArchive 資料庫。所有命令都是在 SQL Server Management Studio 的「New Query」視窗內執行。
螢幕右邊會出現空白的「查詢」視窗。
USE [master]
GO
CREATE LOGIN [WhatsUpGold_User]
WITH PASSWORD = N'P@ssw0rd',
DEFAULT_DATABASE = [WhatsUp]
GO
Command(s) completed successfully
」。ALTER AUTHORIZATION ON DATABASE::[WhatsUp] TO [WhatsUpGold_User]
ALTER AUTHORIZATION ON DATABASE::[NetFlow] TO [WhatsUpGold_User]
ALTER AUTHORIZATION ON DATABASE::[NFArchive] TO [WhatsUpGold_User]
Command(s) completed successfully
」。GRANT CREATE ANY DATABASE TO [WhatsUpGold_User]
Command(s) completed successfully
」。 DENY VIEW ANY DATABASE TO [WhatsUpGold_User]
Command(s) completed successfully
」。