Skip to content

Instantly share code, notes, and snippets.

@swaters86
Created September 12, 2014 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swaters86/9162a814482fa460bb94 to your computer and use it in GitHub Desktop.
Save swaters86/9162a814482fa460bb94 to your computer and use it in GitHub Desktop.
declare @Asite varchar(2)
set @Asite = 'mb'
/* articles */
select COUNT(*) Articles
from web.dbo.Artikkler (nolock)
where Avis=@Asite
/*teasers*/
/*story archives*/
/*galleries*/
select COUNT(*) Galleries
from web.dbo.Artikler_photoalbum (nolock)
where Avis=@Asite
/*article assets*/
select COUNT(*) ArticleAssets
from web.dbo.MediaFiles (nolock)
where Avis=@Asite
/*guides*/
select COUNT(*) Guides
from portal.dbo.Guide (nolock)
where RegAvis=@Asite
/*link directory*/
select COUNT(*) LinkDirectoryLinks
from portal.dbo.Links (nolock)
where Site=@Asite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment