Thor Logo dbatools

Dacpac

Export-DbaDacPackage

Richie lee (@richiebzzzt)

Export-DbaDacPackage View Source Richie lee (@richiebzzzt) Windows, Linux, macOS Synopsis Creates DACPAC or BACPAC deployment packages from SQL Server databases using SqlPackage Description Creates database deployment packages for version control, migrations, and schema distribution. Generates DACPAC files containing database schema definitions or BACPAC files that include both schema and data. This automates the SqlPackage utility so you don’t have to remember complex command-line syntax or manage connection strings manually.

Read more

New-DbaDacOption

Kirill Kravtsov (@nvarscar), nvarscar.wordpress.com

New-DbaDacOption View Source Kirill Kravtsov (@nvarscar), nvarscar.wordpress.com Windows, Linux, macOS Synopsis Creates a new Microsoft.SqlServer.Dac.DacExtractOptions/DacExportOptions object depending on the chosen Type Description Creates a new Microsoft.SqlServer.Dac.DacExtractOptions/DacExportOptions object that can be used during DacPackage extract. Basically saves you the time from remembering the SMO assembly name ;) See: https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dac.dacexportoptions.aspx https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dac.dacextractoptions.aspx for more information Syntax New-DbaDacOption [[-Type] <String>] [-Action] <String> [[-PublishXml] <String>] [[-Property] <Hashtable>] [-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>] Examples Example: 1 PS C:\> $options = New-DbaDacOption -Type Dacpac -Action Export PS C:\> $options.

Read more

New-DbaDacProfile

Richie lee (@richiebzzzt)

New-DbaDacProfile View Source Richie lee (@richiebzzzt) Windows, Linux, macOS Synopsis Creates DAC publish profile XML files for automated dacpac deployment to SQL Server databases. Description The New-DbaDacProfile command generates standard publish profile XML files that control how DacFx deploys your dacpac files to SQL Server databases. These profile files define deployment settings like target database, connection details, and deployment options. The generated XML template includes basic deployment settings sufficient for most dacpac deployments, but you’ll typically want to add additional deployment options to the publish profile for production scenarios.

Read more

Publish-DbaDacPackage

Richie lee (@richiebzzzt)

Publish-DbaDacPackage View Source Richie lee (@richiebzzzt) Windows, Linux, macOS Synopsis Deploys DACPAC or BACPAC files to SQL Server databases using the DacFx framework Description Deploys database schema changes from DACPAC files created by SSDT projects or Export-DbaDacPackage, automatically updating target database structure and executing embedded pre/post deployment scripts. Also imports data from BACPAC files for complete database restoration scenarios. This replaces manual schema synchronization and deployment processes, making it essential for CI/CD pipelines and environment promotions.

Read more