How do I publish a SSDT Database from code
We have SQLServer01.Publish.xml when I double click this file and publish, it publishes a database to sqlServer01. I wanted to ask can we publish this profile from code somehow ? Ashtonian SSDT seems to like DacPac for this kind of thing. There is a DacServices utility class in Microsoft.SqlServer.Dac . I think this will require SSDT to be installed on the machine you plan on running this code. public class DacPacUtility { public void DeployDacPac( string connString, string dacpacPath, string targetDbName ) { var dbServices = new DacServices( connString ); var dbPackage = DacPackage.Load( new