Manual Method :
1- On Domain where SD package should be imported execute following SQL Query to find the new UUID for the Query :
SELECT convert(uniqueidentifier,query_uuid) FROM ca_query_def WHERE label='<query_name>'
Example :
SELECT convert(uniqueidentifier,query_uuid) FROM ca_query_def WHERE label='UPM-Blacklist'
2- Replace the UUID found in file reginfo\itemproc.dat in section [Prereq*] of procedure
Automatic Method :
1- Copy the attached file Export_package_query.dms on Domain Manager
2- Open a command prompt with Administrative privileges and execute this command :
START /WAIT dmscript Export_package_query.dms "<path_exported_package"
or if logged user has not enough rights in SQL Server
START /WAIT dmscript Export_package_query.dms "<path_exported_package" sqluser sqlpassword
Example :
START /WAIT dmscript Export_package_query.dms "C:\TEMP\CMD 4.0"
START /WAIT dmscript Export_package_query.dms "C:\TEMP\CMD 4.0" ca_itrm NOT_changedR11
This script generates a log under C:\Program Files (x86)\CA\DSM\logs\Export_package_query.log