Exclude MSWord sections from unlinked items
Only include 16 Bit Links that have a RecID that have a "0L" prefix.
This commit is contained in:
parent
acffe4982e
commit
0697d763f3
@ -12358,6 +12358,7 @@ GO
|
||||
vesp_ListUnlinkedItems 28825,1
|
||||
vesp_ListUnlinkedItems 28827,1
|
||||
vesp_ListUnlinkedItems 29245,1
|
||||
vesp_ListUnlinkedItems 12217,1
|
||||
*/
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
@ -12392,16 +12393,19 @@ BEGIN
|
||||
cross apply (select * from vefn_GetEnhancedDocVersions(SDV.VersionID) where @EnhType = Type) EDV -- Enhanced DocVersion
|
||||
Join DocVersions DV2 ON DV2.VersionID = EDV.VersionID -- First Procedure
|
||||
END
|
||||
Select ItemID,PreviousID,ContentID,[DTS],[UserID],[LastChanged],
|
||||
Select ItemID,PreviousID,II.ContentID,II.[DTS],II.[UserID],II.[LastChanged],
|
||||
(SELECT COUNT(*) FROM [Annotations] WHERE [Annotations].[ItemID]=[II].[ItemID]) [AnnotationCount],
|
||||
(SELECT COUNT(*) FROM [DocVersions] WHERE [DocVersions].[ItemID]=[II].[ItemID]) [DocVersionCount],
|
||||
(SELECT COUNT(*) FROM [Items] [Children] WHERE [Children].[PreviousID]=[II].[ItemID]) [NextCount],
|
||||
(SELECT COUNT(*) FROM [Parts] WHERE [Parts].[ItemID]=[II].[ItemID]) [PartCount],
|
||||
(SELECT COUNT(*) FROM [Transitions] WHERE [Transitions].[RangeID]=[II].[ItemID]) [Transition_RangeIDCount],
|
||||
(SELECT COUNT(*) FROM [Transitions] WHERE [Transitions].[ToID]=[II].[ItemID]) [Transition_ToIDCount]
|
||||
from Items II where ItemID In (select SIB.ItemID from vefn_AllSiblingItems(@EItemID) SIB
|
||||
from Items II
|
||||
Left Join Entries EE ON II.ContentID = EE.ContentID
|
||||
where ItemID In (select SIB.ItemID from vefn_AllSiblingItems(@EItemID) SIB
|
||||
outer apply vefn_GetNewEnhancedData(ItemID,0) VIE
|
||||
Where VIE.EItemID is null)
|
||||
and EE.ContentID is null
|
||||
END
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
@ -12779,7 +12783,7 @@ select VS.ItemID, VS.ContentID
|
||||
,'<Enhanced Type="0" ItemID = "' + cast(VS.ItemID as varchar(12)) + '"/>' EnhConfig
|
||||
,VE.ProcName EnhProcName, VE.RecID EnhRecID
|
||||
from vefn_GetOldEnhancedProcItems(@SourceID) VS
|
||||
join vefn_GetOldEnhancedProcItems(@EnhanceID) VE on ve.Procname = vs.ProcName and substring(VE.RecID,3,8) = substring(VS.RecID,3,8)
|
||||
join vefn_GetOldEnhancedProcItems(@EnhanceID) VE on ve.Procname = vs.ProcName and substring(VE.RecID,2,8) = 'L' + substring(VS.RecID,3,8)
|
||||
--select * from @EnhItems
|
||||
RETURN
|
||||
END
|
||||
|
Loading…
x
Reference in New Issue
Block a user