Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Selecting and purging orphaned records from the Security Expert ImageData Table

Building Automation Knowledge Base

Schneider Electric Building Automation Knowledge Base is a self-service resource to answer all your questions about EcoStruxure Building suite, Andover Continuum, Satchwell, TAC…

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Building Automation Knowledge Base
  • Selecting and purging orphaned records from the Security Expert ImageData Table
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close

Related Forums

  • Intelligent Devices Forum

Previous Next
Contributors
  • Alan_Wood
    Alan_Wood

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Building Automation Knowledge Base
Start a Topic
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
0 Likes
320 Views

Link copied. Please paste this link to share this article on your social media post.

Trying to translate this page to your language?
Select your language from the translate dropdown in the upper right. arrow
Translate to: English
  • (Français) French
  • (Deutsche) German
  • (Italiano) Italian
  • (Português) Portuguese
  • (Русский) Russian
  • (Español) Spanish

Selecting and purging orphaned records from the Security Expert ImageData Table

Admiral Alan_Wood Admiral
‎2025-09-17 05:37 PM

on ‎2025-09-17 05:37 PM

Issue

A method is required to purge orphaned ImageData records from the Security Expert database to free up hard drive space.

Product Line

EcoStruxure Security Expert

Environment

  • Security Expert 
  • Microsoft SQL Server Management Studio (SSMS)

Warning

Potential for Data Loss: The steps detailed in the resolution of this article may result in a loss of critical data if not performed properly. Before beginning these steps, make sure all important data is backed up in the event of data loss. If you are unsure or unfamiliar with any complex steps detailed in this article, please contact Product Support for assistance.

Cause

Running the SSMS Disk Usage report indicates what tables are the largest. The ImageData table is often one of the largest in the report and queries are needed to purge records.

During transitions from Continuum, if Personnel/User records are removed, the GA_Blob table converts to the ImageData table.
However, orphaned records may remain in ImageData because deletions in Continuum or Security Expert do not automatically remove associated image records.

Resolution

Use the instructions below to identify and select all ImageData records that do not belong to a user, then delete them from the database.

 

Note: Always validate the results of the SELECT query before running the DELETE command.

 

✅ Step 1: Backup the Database

In SSMS:

  • Right-click the SecurityExpert database
  • Navigate to: Tasks > Backup
  • Complete a successful backup before proceeding.

✅ Step 2: Identify Orphaned Records

Run the following SELECT query in SSMS to identify orphaned ImageData records:

USE SecurityExpert
SELECT dbo.ImageData.ImageID 
FROM dbo.ImageData 
WHERE NOT EXISTS (
    SELECT ImageID 
    FROM dbo.Users AS T1 
    WHERE T1.ImageID = ImageData.ImageID
)

This query will return all ImageData entries not linked to any user.


✅ Step 3: Purge Orphaned Records

Run the following DELETE query to remove the orphaned records:

USE SecurityExpert
DELETE FROM dbo.ImageData 
WHERE NOT EXISTS (
    SELECT ImageID 
    FROM dbo.Users AS T1 
    WHERE T1.ImageID = ImageData.ImageID
)

✅ Step 4: Shrink the Database

After deletion:

  • Right-click the SecurityExpert database
  • Navigate to: Tasks > Shrink > Database

⏳ Note: Depending on the database size and number of records, this process may take several minutes.

Labels (1)
Labels:
  • EcoStruxure Security Expert
Tags (1)
  • Find more articles tagged with:
  • AlanWood25
Was this article helpful? Yes No
No ratings

Link copied. Please paste this link to share this article on your social media post.

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore