Get-VESQLRDSDatabase

Short Description

Returns backed-up Microsoft SQL Server databases running on Amazon RDS.

Product: Veeam Backup & Replication

Product Edition: Enterprise Plus, Veeam Universal License

Syntax

Get-VESQLRDSDatabase [-Session] <VESQLRDSRestoreSession> [-Name <String[]>] [-InstanceName <String[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns an array of backed-up Microsoft SQL Server databases running on Amazon RDS.

After you get the databases, you can use the following cmdlets:

  • Get-VESQLRDSRestorePointReturns restore points for a backed-up Microsoft SQL Server database running on Amazon RDS. - to get the available restore points for a specific database.
  • Start-VESQLRDSDatabaseRestoreRestores a backed-up Microsoft SQL Server database running on Amazon RDS to an on-premise Microsoft SQL Server machine. - to restore your data.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

InstanceName

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

This parameter accepts wildcard characters.

String[]

False

Named

False

Name

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

This parameter accepts wildcard characters.

String[]

False

Named

False

Session

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

Accepts the VESQLRDSRestoreSession object. To get this object, run the Get-VESQLRDSRestoreSessionReturns active restore sessions started to explore and restore backed-up Microsoft SQL Server databases running on Amazon RDS. cmdlet.

VESQLRDSRestoreSession

True

0

True (ByValue)

<CommonParameters>

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

Output Object

The cmdlet returns the VESQLRDSDatabase[] object that contains an array of backed-up Microsoft SQL Server databases running on Amazon RDS.

Examples

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

This example shows how to get a list of all Microsoft SQL Server databases within the specified restore session.

$session = Get-VESQLRDSRestoreSession

$database = Get-VESQLRDSDatabase -Session $session[1]

Perform the following steps:

  1. Run the Get-VESQLRDSRestoreSessionReturns active restore sessions started to explore and restore backed-up Microsoft SQL Server databases running on Amazon RDS. cmdlet. Save the result to the $session variable.

    The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session (in this example, it is the second restore session in the array).

  2. Run the Get-VESQLRDSDatabase cmdlet. Set the $session variable as the Session parameter value and select the necessary restore session. Save the result to the $database variable to use it with other cmdlets.

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

This example shows how to get all Microsoft SQL Server databases with the specified name.

$session = Get-VESQLRDSRestoreSession

Get-VESQLRDSDatabase -Session $session[0] -Name "SQLDatabase"

Perform the following steps:

  1. Run the Get-VESQLRDSRestoreSessionReturns active restore sessions started to explore and restore backed-up Microsoft SQL Server databases running on Amazon RDS. cmdlet. Save the result to the $session variable.

    The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session. In this example, it is the first restore session in the array.

  2. Run the Get-VESQLRDSDatabase cmdlet. Set the $session variable as the Session parameter value and select the necessary restore session. Specify the Name parameter value. Save the result to the $database variable to use it with other cmdlets.

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

This example shows how to get all Microsoft SQL Server databases with specific names that belong to specific instances.

$session = Get-VESQLRDSRestoreSession

$databasenames = @("db1", "db2")

$instancenames = @("instance_01", "instance_02")

Get-VESQLRDSDatabase -Session $session[0] -Name $databasenames -InstanceName $instancenames

Perform the following steps:

  1. Run the Get-VESQLRDSRestoreSessionReturns active restore sessions started to explore and restore backed-up Microsoft SQL Server databases running on Amazon RDS. cmdlet. Save the result to the $session variable.

    The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session. In this example, it is the first restore session in the array.

  2. Declare the $databasenames variable. Assign to this variable an array with the names of the necessary Microsoft SQL Server databases.
  3. Declare the $instancenames variable. Assign to this variable an array with the names of the necessary Microsoft SQL Server instances.
  4. Run the Get-VESQLRDSDatabase cmdlet. Specify the following settings:

    • Set the $session variable as the Session parameter value and specify the necessary restore session.
    • Set the $databasenames variable as the Name parameter value.
    • Set the $instancenames variable as the InstanceName parameter value.

    Save the result to the $database variable to use it with other cmdlets.

Get-VESQLRDSRestoreSessionReturns active restore sessions started to explore and restore backed-up Microsoft SQL Server databases running on Amazon RDS.

Page updated 2026-08-18

Page content applies to build 13.1.1.18