--- title: "Stop-VESQLDatabasePublish" description: "Unpublishes a Microsoft SQL Server database from the target server. Product: Veeam Backup & Replication Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet unpublishes a Microsoft SQL Server data" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/stop-vesqldatabasepublish.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft SQL Server > Stop-VESQLDatabasePublish" dateModified: "2026-08-18" --- # Stop-VESQLDatabasePublish ## Short Description Unpublishes a Microsoft SQL Server database from the target server. **Product**: Veeam Backup & Replication **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Stop-VESQLDatabasePublish [-DatabasePublish] [-Force] [] ``` ## Detailed Description This cmdlet unpublishes a Microsoft SQL Server database from the target server. ::: note Publishing jobs will not stop automatically if you close the PowerShell console. To stop a publishing job, you must run the `Stop-VESQLDatabasePublish` cmdlet. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

DatabasePublish

Specifies the publishing process for a Microsoft SQL Server database. The cmdlet will stop the process and unpublish the database from the target Microsoft SQL Server machine.

Accepts the VESQLDatabasePublish object. To get this object, run the Get-VESQLDatabasePublish cmdlet.

VESQLDatabasePublish

True

0

True (ByValue)

Force

Defines that the cmdlet will show no prompt before executing the command.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Examples ::: example ### Stopping Publishing Process for a Microsoft SQL Server Database This example shows how to unpublish a Microsoft SQL Server database. ``` $publish = Get-VESQLDatabasePublish -DatabaseName "db1" Stop-VESQLDatabasePublish -DatabasePublish $publish ``` Perform the following steps: 1. Run the [`Get-VESQLDatabasePublish`](get-vesqldatabasepublish.md) cmdlet. Specify the `DatabaseName` parameter value and save the result to the `$publish` variable. 2. Run the `Stop-VESQLDatabasePublish` cmdlet. Set the `$publish` variable as the `DatabasePublish` parameter value. ::: ## Related Commands [`Get-VESQLDatabasePublish`](get-vesqldatabasepublish.md)