Created
October 16, 2009 04:21
-
-
Save alecthegeek/211555 to your computer and use it in GitHub Desktop.
Serena Dimensions admin script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query that might help locate item library files that have been inserted incorrectly | |
select filename | |
from pcms_item_data, pcms_workset_items, pcms_workset_info | |
where file_version > 1 | |
and lib_file_length = 0 | |
and pcms_workset_info.product_id = '$GENERIC' | |
and pcms_workset_info.workset_name = '$GLOBAL' | |
and pcms_workset_info.workset_uid = pcms_workset_items.workset_uid | |
and pcms_item_data.item_uid = pcms_workset_items.item_uid | |
order by lib_filename | |
Another useful command on the OS CLI in the item libs directory (on Windows you'll need to install Cygwin or similar) | |
find . -type f -size 0 ! -name \*.1 | sort | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment