sql server - Why should I use the dbDacFx provider at all? -


i'm looking @ ways automatically publish dacpac whenever deploy web application iis.

one of ways through web deploy itself, using dbdacfx provider. see: http://www.iis.net/learn/publish/using-web-deploy/dbdacfx-provider-for-incremental-database-publishing

some of examples give syncing 2 databases this:

msdeloy.exe -verb:sync ^ -source:dbdacfx="data source=.\sqlexpress; database=olddatabase; user id=sa; password=p@$$w0rd" ^ -dest:dbdacfx="data source=.\sqlexpress; database=newdatabase; user id=sa; password=p@$$w0rd" 
msdeloy.exe -verb:sync ^ -source:dbdacfx="c:\users\admininstrator\documents\database.dacpac" ^ -dest:dbdacfx="data source=.\sqlexpress; database=newdatabase; user id=sa; password=p@$$w0rd" 

my question why on earth not use sqlpackage.exe this?

sqlpackage.exe /action:publish ^ /sourceconnectionstring:"data source=.\sqlexpress; database=olddatabase; user id=sa; password=p@$$w0rd" ^ /targetconnectionstring:"data source=.\sqlexpress; database=newdatabase; user id=sa; password=p@$$w0rd" 
sqlpackage.exe /action:publish ^ /sourcefile:"c:\users\admininstrator\documents\database.dacpac" ^ /targetconnectionstring:"data source=.\sqlexpress; database=newdatabase; user id=sa; password=p@$$w0rd" 

web deploy doesn't bring new table far can tell. why dbdacfx provider exist?

things considered:

  • web deploy's dbdacfx runs on application server instead of machine triggers deployment
    • non-administrator deploys possible through wmsvc delegation rules (but why examples use 'sa' instead of integrated security?)
  • both msdeploy.exe , sqlpackage.exe support parameterization through xml configuration.

i guess way definite answer why exists find on msdeploy team , ask them.

the thing awesome dacpacs ssdt team have built these api's (dacfx) , made them available people free sort of thing , if helps people use msdeploy deploy dacpacs why not?

i have seen few different implementations, visual studio has publish + schema compare both use dacfx.

if use sqlpackage , want use go it.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -