Created
August 6, 2013 21:06
-
-
Save kristinaconley/6168638 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
UPDATE SN | |
SET SN.PermanentRefcount = SN.PermanentRefcount - 1 | |
FROM | |
[ReportServerTempDB].dbo.SnapshotData AS SN | |
INNER JOIN [ReportServerTempDB].dbo.ExecutionCache AS EC ON SN.SnapshotDataID = EC.SnapshotDataID | |
INNER JOIN Catalog AS C ON EC.ReportID = C.ItemID | |
WHERE C.Path LIKE '%%' | |
DELETE EC | |
FROM | |
[ReportServerTempDB].dbo.ExecutionCache AS EC | |
INNER JOIN Catalog ON EC.ReportID = Catalog.ItemID | |
WHERE Catalog.Path LIKE '%%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment