Это решение работало для меня:
INSERT INTO
NavNodes
([SiteId] ,
[WebId] ,
[Eid] ,
[EidParent] ,
[NumChildren] ,
[RankChild] ,
[ElementType] ,
[Url] ,
[DocId] ,
[Name] ,
[DateLastModified] ,
[NodeMetainfo] , [NonNavPage] ,[NavSequence] ,[ChildOfSequence])
SELECT DISTINCT
SiteId, WebId ,1002 ,0 ,0 ,1 ,1 ,'' ,NULL ,'SharePoint Top Navbar' ,getdate() ,NULL ,0 ,1 ,0
FROM NavNodes
WHERE WebId NOT IN (
SELECT WebId
FROM NavNodes
WHERE Eid = 1002)