Find all documents with dead links in the database

Last updated 3 months ago

Learn how to find content that contains dead links.

LightbulbWhat you'll learn

  • Find content with dead links

Person reading a bookPrerequisites

  • Having a CoreMedia system

WristwatchTime matters

Reading time: 1 minute

Person in front of a laptopShould I read this?

This guide is for Developers, Administrators.

Use the following SQL statement to find all documents with dead links

select sourcedocument, sourceversion from linklists where not exists
(select * from
resources where id_ = targetdocument)

The next SQL statement returns all documents that have deadlinks in their latest version;

select sourcedocument, sourceversion from linklists where not exists
(select * from
resources where id_ = targetdocument) and exists (select * from
resources where id_ =
sourcedocument and latestversion_ = sourceversion)
Copyright © 2025 CoreMedia GmbH, CoreMedia Corporation. All Rights Reserved.
Loading...