Find all documents with dead links in the database

Last updated 17 minutes ago

Learn how to find content that contains dead links.

LightbulbWhat you will learn

  • Find content with dead links

Person reading a bookPrerequisites

  • Having a CoreMedia system

Person in front of a laptopTarget Audience

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 © 2026 CoreMedia GmbH, CoreMedia Corporation. All Rights Reserved.Privacy | Legal | Imprint
Loading...