Get-VESQLDatabase

Short Description

Returns backed-up Microsoft SQL Server databases.

Applies to

Veeam Backup & Replication

Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VESQLDatabase [-Session] <VESQLRestoreSession> [[-Name] <String[]>] [[-InstanceName] <String[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns an array of backed-up Microsoft SQL Server databases.

After you get the backed-up Microsoft SQL Server databases, you can perform the following operations with these databases:

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Session

Specifies an active restore session. The cmdlet will return an array of databases within the specified restore session.

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

True

0

True (ByValue)

Name

Specifies an array of names for Microsoft SQL Server databases. The cmdlet will return an array of databases with the specified names.

String[]

False

1

False

InstanceName

Specifies an array of names for Microsoft SQL Server instances. The cmdlet will return an array of databases located on the specified instances.

String[]

False

2

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VESQLDatabase[] array that contains backed-up Microsoft SQL Server databases.

Examples

Get-VESQLDatabaseExample 1. Getting Microsoft SQL Server Databases Within Specified Restore Session

Get-VESQLDatabaseExample 2. Getting Microsoft SQL Server Databases with Specified Name

Get-VESQLDatabaseExample 3. Getting Microsoft SQL Server Databases with Specific Names Belonging to Specific Instances

Related Commands

Get-VESQLRestoreSession

Page updated 3/12/2025

Page content applies to build 12.3.1.1139