Added "OPTION (MAXRECURSION 10000) to all recursive queries. Remove Change Manager stored procedure "getItemAuditsByItemID"

This commit is contained in:
Rich
2012-11-05 21:55:27 +00:00
parent 59b765e6d8
commit 173dd85ccf
4 changed files with 1387 additions and 51 deletions

View File

@@ -2764,6 +2764,7 @@ select ItemID [FromItemID], TT.[TransitionID], TT.[FromID], TT.[ToID], TT.[Range
join Items II on II.ContentID=TT.FromID
where (ToID not in(select ItemID from Itemz) OR RangeID not in(select ItemID from Itemz))
AND FromID in(Select ContentID from ItemZ)
OPTION (MAXRECURSION 10000)
RETURN
END
GO