Upgrading DACPACs with DACFx 3.0 API - How to inspect current DAC version of an existing database?

后端 未结 1 1142
栀梦
栀梦 2021-01-19 16:21

I am currently rewriting my team\'s database deployment Powershell script to use DACFx 3.0 API instead of 2.0. I\'ve managed to get the DACPAC upgrade to work successfully,

相关标签:
1条回答
  • 2021-01-19 16:39

    Just got a reply from MSFT:

    The Dac 3.0 API doesn't have this capability as you've discovered. Use T-SQL to select this data directly from dbo.sysdac_instances.

    It seems like it is in fact the only way: http://msdn.microsoft.com/en-us/library/ee240830.aspx So I'll query off that view for now, although I'd really love to see it brought into the DACFx API at some point. Note that the view dbo.sysdac_instances is in the masters database, as msdb does not exist in SQL Azure.

    0 讨论(0)
提交回复
热议问题