Created
September 12, 2014 13:46
-
-
Save swaters86/9162a814482fa460bb94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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