Skip to content

Instantly share code, notes, and snippets.

@aburok
Created May 30, 2018 12:05
Show Gist options
  • Save aburok/924a66b8bdc6ec36fce24711fc80c97a to your computer and use it in GitHub Desktop.
Save aburok/924a66b8bdc6ec36fce24711fc80c97a to your computer and use it in GitHub Desktop.
Umbraco user notification SQL Query
-- Select all notifications for user
SELECT TOP 1000
uu.userName,
uu.userEmail,
[userId],
cd.[nodeId],
cd.text,
cd.published,
cd.updateDate,
[action]
FROM [dbo].[umbracoUser2NodeNotify] u2n
inner join umbracoUser uu on u2n.userId = uu.id
inner join cmsDocument cd on u2n.nodeId = cd.nodeId and cd.published = 1
-- where u2n.userId = 0
order by userid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment