Package database with a Criteria ?
compvis
Posts: 13
Hi,
In database, I have a table with some fields such as: ID, NameProducts, Price, Date. I have a question is how can i create a package for that table with condition Date is greater than 22/12/2011 (for example) to update database on other machine ?
My goal is to package a portion of data with a criteria from a database to update to another database (two database with the same schema structure).
Is it possible ?
In your worked sample, to package an upgrade, we have to compare from two databases. With my question above, we can create an upgrade from one database with detail criteria. I do hope you can help me to implement this task.
Thank you so much !
In database, I have a table with some fields such as: ID, NameProducts, Price, Date. I have a question is how can i create a package for that table with condition Date is greater than 22/12/2011 (for example) to update database on other machine ?
My goal is to package a portion of data with a criteria from a database to update to another database (two database with the same schema structure).
Is it possible ?
In your worked sample, to package an upgrade, we have to compare from two databases. With my question above, we can create an upgrade from one database with detail criteria. I do hope you can help me to implement this task.
Thank you so much !
Comments
There is no supported way of filtering data in upgrade packages, but what you could do is, first, create a package and save the script, then add the statements to populate your seed data and then just run packager to package the script.
Thank you so much for help.
Could you please tell me in details ? especially in code (a sample), i think some people also needs this feature like me.
Sorry for my post above, i didn't say my question is in Package API. I want to implement in Package API.
i'm not clearly, but my problem is:
- Create a package from database in one or more tables with a criteria (example here is date from one day to up), i don't want to compare from two databases then package.
- Use this package, copy to other machine (by CD, USB...) to update data, not install database on this machine, only data updated.
Package API could do this task ? I think you will help us by creating a full sample of this. It will be useful for us, that need this feature from Package API.
Thank you so much ! Hope you help !
http://sdk.red-gate.com/index.php/Filte ... a_overview
It means, i have to compare from two databases on local machine
You will support this feature for SQL Package API ? Package data from one database with a criteria !
Thank you so much !