Help Center
Choose product document...
Veeam Backup & Replication 9.5 Update 4
Veeam Explorers PowerShell Reference

Unpublish-VESQLDatabase

Short Description

Unpublishes Microsoft SQL databases.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

Unpublish-VESQLDatabase [-Database] <VESQLPublishedDatabase>  [<CommonParameters>]

Detailed Description

This cmdlet unpublishes Microsoft SQL databases.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Database

Specifies the Microsoft SQL database. The cmdlet will unpublish the selected database.

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

True

0

True (ByValue)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Example

This example shows how to unpublish a Microsoft SQL database.

  1. Run the Get-VESQLRestoreSession cmdlet to get a restore session for the Microsoft SQL database. Save the result to the $session variable.
  2. Run the Get-VESQLPublishedDatabase cmdlet with the $session variable and the Name parameter to specify the Microsoft SQL database that you want to unpublish. Save the result to the $database variable.
  3. Run the Unpublish-VESQLDatabase cmdlet with the $database variable.

$session = Get-VESQLRestoreSession

$database = Get-VESQLPublishedDatabase -Session $session[0] -Name "SQLDatabase"

Unpublish-VESQLDatabase -Database $database

Related Commands

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Explorers User Guide

Backup and Restore of SQL Server Databases

Veeam Plug-ins for Enterprise Applications

PowerShell Reference

Veeam Explorers PowerShell Reference

RESTful API Reference

Required Permissions

Veeam Availability for Nutanix AHV

Veeam Backup for Microsoft Office 365 Documentation

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation