而凝視的SqlDependency的SqlDependency權限問題
無法找到指定的用戶「所有者」我收到以下錯誤。找不到隊列 'SqlQueryNotificationService-dfb11997-c69e-4e3b-a640-29cdf4c3e9fa', 因爲它不存在或您沒有權限。無效 對象名稱 'SqlQueryNotificationService-dfb11997-c69e-4e3b-a640-29cdf4c3e9fa'。
我已經給了以下權限。不確定要賦予sql角色/用戶什麼其他權限。感謝您的時間和幫助
GRANT CREATE PROCEDURE to [SqlUser]
GRANT CREATE QUEUE to [SqlUser]
GRANT CREATE SERVICE to [SqlUser]
GRANT REFERENCES on
CONTRACT::[http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]
to [SqlUser]
GRANT VIEW DEFINITION TO [SqlUser]
GRANT SELECT to [SqlUser]
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO [SqlUser]
GRANT RECEIVE ON QueryNotificationErrorsQueue TO [SqlUser]
GRANT ALTER ON SCHEMA::dbo TO [SqlUser]
GRANT CONTROL ON SCHEMA::[dbo] TO [SqlUser];
GRANT IMPERSONATE ON USER::DBO TO [SqlUser];
ALTER USER [sqluser] WITH DEFAULT_SCHEMA=[SqlUser]
GO