by XDK
31. October 2015 07:17
Explanation:
Alert details are stored in tbl_EventSubscription table in the collection databases.
Following query will list all alert details
USE Tfs_DefaultCollection
SELECT subuser.AccountName,subuser.DisplayName,MailAddress,alert.EventType,alert.Expression,alert.Address
FROM tbl_EventSubscription alert
JOIN Tfs_Configuration.dbo.tbl_identity subuser
ON subuser.Id = alert.SubscriberId