Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
How to query the TIBCO Spotfire database to get the list of all analysis files using a particular data connection which is saved in a library
Solution:
You may need to find the list of all analysis files which uses a particular data connection which is saved in a library. For example, if there are changes to the data which will require an edit in the analysis files you may need a list of all files that require changes. With the help of query provided in resolution you will be getting the desired result. Use the following example query against the Spotfire database to generate a list of analysis files referencing the data connection:
select y.TITLE Analysis_File_Name from LIB_RESOLVED_DEPEND x join LIB_ITEMS y on x.DEPENDENT_ID = y.ITEM_ID join LIB_ITEM_TYPES z on z.TYPE_ID = y.ITEM_TYPE where REQUIRED_ID = '91ba2f17-03b7-44e7-821e-cde6dd56b01a' and z.DISPLAY_NAME='dxp'
Important notes:
- Before executing the query, replace the REQUIRED_ID value ('91ba2f17-03b7-44e7-821e-cde6dd56b01a') in the above query with GUID of the respective data connection saved in library.
- The above query is an example tested on Microsoft SQL Server.
- LIB_ITEMS - A row for each object in the library
- LIB_RESOLVED_DEPEND - Each object's dependencies on other objects
- LIB_ITEM_TYPES - A translation of the ITEM_TYPE GUID to an English version (Data Connection, Information Link etc.)
Comments
0 comments
Article is closed for comments.