/
How to find pages that uses a specific data source profile in different SQL macros
How to find pages that uses a specific data source profile in different SQL macros
This article explains how to find pages that uses a specific data source profile in different SQL macros for a Confluence instance. The macros involved are SQL, SQL query and SQL file.
Instructions
Use the following query to get information about pages that use a specific data source profile:
SELECT c.contentid, c.contenttype, c.title, s.spacekey FROM CONTENT c JOIN BODYCONTENT bc ON c.contentid = bc.contentid JOIN SPACES s ON c.spaceid = s.spaceid WHERE c.prevver IS NULL AND c.contenttype IN ('PAGE', 'BLOGPOST') AND bc.body LIKE '%ac:name="dataSource">Profile_name%';
Replace Profile_name in the query with a data source profile name from your Confluence instance.
The output of the above query is as shown:
This example is from MySQL database. You may have to tweak the query to use it in your database.
, multiple selections available,
Related content
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
More like this
How to get usage information about the SQL for Confluence app
How to get usage information about the SQL for Confluence app
More like this
How to use SQL to find pages
How to use SQL to find pages
More like this
How to find Pages and Templates that use Scaffolding macros from database
How to find Pages and Templates that use Scaffolding macros from database
More like this
Searching Confluence Pages for a Specific Macro
Searching Confluence Pages for a Specific Macro
More like this
Identify Flow Board app macro usage with a SQL query
Identify Flow Board app macro usage with a SQL query
More like this