Skip to content

Instantly share code, notes, and snippets.

@SteGriff
Last active September 10, 2015 14:18
Show Gist options
  • Save SteGriff/93cf6f4f22ea60cdaeef to your computer and use it in GitHub Desktop.
Save SteGriff/93cf6f4f22ea60cdaeef to your computer and use it in GitHub Desktop.
Umbraco Database Freshness Check
select
max(ID) as "Newest node",
count(*) as "Total nodes",
(select top(1) [timestamp] from cmsPreviewXml order by [timestamp] desc) as "Latest preview"
from umbracoNode
go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment