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 SavedQueryMeta
into 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_ID
Replace the following placeholders
- SOURCE_TYPE if you have your data in PX files write
px
if 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.xml
file 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_VENDOR
Replace the following placeholders
- SOURCE_TYPE if you have your data in PX files write
px
if you have your data in the Common Nordic Meta Model writecnmm
- MY_SOURCE Should be a connection string to the database where the
SavedQuerMeta
andSavedQuerMeta2
- DATABASE_ID this sould be the database id in
SqlDb.config
. - MY_VENDOR should be
mssql
ororacle
depending on your database vendor.
Run the following command
./sq-migrate.exe stats stats -l MY_SOURCE
Replace MY_SOURCE
with the path to your saved queries.