Hello,
We have SQL 2008 R2 and VS 2010 Premium to do to the database development. Our databases are SQL server 2008 project. We deploy them by schema comparing the projects to the actual database and then create a "change" script which we deploy.
This is pretty time consuming.
We are now "migrating" them to a data tier application (dacpac). The big advantage is that you only have one file to deploy. When I build a database I get a new dacpac.
However, it is does not build the dacpac when a post deployment file has changed. Anyway to fix this (except clean or rebuild) ?
Is it possible to get date/time/machine name in the Version or Description ?
When deploying the dacpac to a server, an administrator can lauch SQL Managent studio click on upgrade data tier/next /next finish. This generates a change script which can be executed immediately. One of the "bugs" is that it keeps dropping and
adding calculated columns in tables all the time (this seem to be fix newer versions). However I want to automated it futher. The only way so far is powershell. I found a script on the internet that deploys a dac pac. (link :
http://blogs.msdn.com/b/managingsql/archive/2010/04/28/dac-powershell-samples.aspx)
However, the script does not deploy the post deployment script included in the dacpac. How can I fix this ?
Finally the deployment process creates a new databases with the new structure. It copies the data from the old datbase to the new database and then renames it. If the database is huge it is not smart way to do it. Any way to make this deployment smarter
?
Is it wise to update to Microsoft® SQL Server® Data-Tier Application Framework (June 2014) ? (link :
http://www.microsoft.com/en-us/download/details.aspx?id=43370) Are the dacpac generated by VS 2010 compatible with that version ? Do I need to install DACFramework.msi on all
servers ? Can I still deploy the dacpac using SQL Managament tools v2008 or do I need then the SSDT from sql 2014 ?
Thanks for your answers
Constantijn Enders