Skip to content

Instantly share code, notes, and snippets.

@erraggy
Created May 26, 2011 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save erraggy/992639 to your computer and use it in GitHub Desktop.
Save erraggy/992639 to your computer and use it in GitHub Desktop.
The final export query for CommunityServer 2008
SELECT [Subject], PostDate, FormattedBody,
dbo.old_url(PostDate, [Subject]) AS old_url,
dbo.make_slug([Subject]) AS slug
FROM dbo.cs_Posts
WHERE UserID = 2102
AND SectionID = 4
AND PostLevel = 1
AND IsApproved = 1
AND IsLocked = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment