SQL Queries - Common SQL Queries - Queries on Source Code - How to remove source code from CAST databases

Purpose of Query

The purpose of this page is to provide queries to remove source code from CAST databases.  This is generally not a recommended operation and there are impacts to running these queries as source code will no longer be visible on the CAST dashboards to assist in violation understanding and remediation.  To add source code back into the databases, please see the documentation:

Applicable CAST Version
Release
Yes/No
8.3.x (tick)
Applicable RDBMS
RDBMS
Yes/No
CSS (tick)

 

Query for CSS

 To remove source code from the local database, run this query on the local database:

UPDATE dss_code_sources SET    source_code = NULL;

 To remove source code from the central database, run this query on the central database:

UPDATE dss_source_texts SET    source_text = NULL;
Notes/comments



Related Pages