Tool for saved queries you can migrate old saved queries to saved queries used in PxWebApi2
You can also generat statistics from you saved queries before migrating.
You can migrate saved queries store on disk to a new location on disk or saved queries stored in database in table SavedQueryMetainto table SavedQueryMeta2
Run the following command replace the placeholders with your parameters
./sq-migrate.exe migrate -t File -x SOURCE_TYPE -s "MY_SOURCE" -d "MY_DESTIONATION" -p DATABASE_IDReplace the following placeholders
- SOURCE_TYPE if you have your data in PX files write
pxif you have your data in the Common Nordic Meta Model writecnmm - MY_SOURCE should be the path to where your have your saved queries.
- MY_DESTINATION should be the path to where to store the converted saved queries. This should be a diffrent folder from
MY_SOURCE. - DATABASE_ID this sould be the path to the
Menu.xmlfile and all the PX files.
Run the following command replace the placeholders with your parameters
./sq-migrate.exe migrate -t Database -x SOURCE_TYPE -s "MY_SOURCE" -p DATABASE_ID -v MY_VENDORReplace the following placeholders
- SOURCE_TYPE if you have your data in PX files write
pxif you have your data in the Common Nordic Meta Model writecnmm - MY_SOURCE Should be a connection string to the database where the
SavedQuerMetaandSavedQuerMeta2 - DATABASE_ID this sould be the database id in
SqlDb.config. - MY_VENDOR should be
mssqlororacledepending on your database vendor.
Run the following command
./sq-migrate.exe stats stats -l MY_SOURCEReplace MY_SOURCE with the path to your saved queries.