Thor Logo dbatools

Deployment

Export-DbaDacPackage

Richie lee (@richiebzzzt)

Export-DbaDacPackage View Source Richie lee (@richiebzzzt) Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Exports DACPAC or BACPAC packages from SQL Server databases using the DacFx framework 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. Perfect for creating deployable packages from development databases, capturing schema snapshots for source control, or preparing migration artifacts for different environments.

Read more

Get-DbaInstalledPatch

Hiram Fleitas, @hiramfleitas, fleitasarts.com

Get-DbaInstalledPatch View Source Hiram Fleitas, @hiramfleitas, fleitasarts.com Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Retrieves installed SQL Server patches from Windows Registry for patch compliance and audit reporting. Description Queries the Windows Registry to retrieve a complete history of SQL Server patches installed on one or more computers. This includes Cumulative Updates (CUs), Service Packs, and Hotfixes that have been applied to any SQL Server instance on the target machines.

Read more

Get-DbaKbUpdate

Chrissy LeMaire (@cl), netnerds.net

Get-DbaKbUpdate View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Retrieves detailed metadata and download links for Microsoft KB updates from the update catalog Description Searches Microsoft’s update catalog website to retrieve comprehensive information about KB updates including service packs, hotfixes, and cumulative updates. Returns detailed metadata such as supported products, architecture, language, file size, supersession information, and direct download links.

Read more

Install-DbaInstance

Reitse Eskens (@2meterDBA), Kirill Kravtsov (@nvarscar)

Install-DbaInstance View Source Reitse Eskens (@2meterDBA), Kirill Kravtsov (@nvarscar) Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Automates SQL Server instance installation across local and remote computers with customizable configuration. Description Orchestrates unattended SQL Server installations by generating configuration files and executing setup.exe remotely or locally. Automates the tedious process of creating proper configuration.ini files, handling service accounts, and managing installation prerequisites like pending reboots and authentication protocols.

Read more

Install-DbaSqlPackage

Chrissy LeMaire and Claude

Install-DbaSqlPackage View Source Chrissy LeMaire and Claude Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Installs Microsoft SqlPackage utility required for database deployment and DACPAC operations Description Downloads and installs Microsoft SqlPackage utility, which is essential for database deployment automation and DACPAC operations. This prerequisite tool enables you to use Import-DbaDacpac, Export-DbaDacpac, Publish-DbaDacpac and Get-DbaDacpac for automated database schema deployments and CI/CD pipelines.

Read more

Invoke-DbaAdvancedInstall

Chrissy LeMaire (@cl), netnerds.net

Invoke-DbaAdvancedInstall View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Executes SQL Server installation on a single computer with automated restart handling. Description Performs the complete SQL Server installation workflow on a target computer, including pre and post-installation restart management. This internal function handles copying configuration files to remote machines, executing setup.exe with specified parameters, configuring TCP ports, enabling volume maintenance tasks, and managing required system restarts.

Read more

Invoke-DbaAdvancedUpdate

Kirill Kravtsov (@nvarscar)

Invoke-DbaAdvancedUpdate View Source Kirill Kravtsov (@nvarscar) Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Installs SQL Server updates and patches on remote computers with automatic restart management Description Executes SQL Server KB updates on a target computer by extracting patch files, running setup.exe with appropriate parameters, and managing system restarts as needed. This function handles the core installation logic for Update-DbaInstance, processing update actions for specific SQL Server instances or all instances on a machine.

Read more

New-DbaDacOption

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

New-DbaDacOption View Source Kirill Kravtsov (@nvarscar), nvarscar.wordpress.com Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs 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-DbaDacPackage

the dbatools team + Claude

New-DbaDacPackage View Source the dbatools team + Claude Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Creates a DACPAC package from SQL source files using the DacFx framework Description Creates a DACPAC (Data-tier Application Package) from SQL source files without requiring MSBuild, Visual Studio, or the .NET SDK. Uses the Microsoft.SqlServer.Dac.Model.TSqlModel API to parse SQL files, validate the model, and generate a deployable DACPAC package.

Read more

New-DbaDacProfile

Richie lee (@richiebzzzt)

New-DbaDacProfile View Source Richie lee (@richiebzzzt) Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs 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.

Read more
← Previous
1 2
Next →
Page 1 of 2