Get-VESQLDatabase
Short Description
Returns backed-up Microsoft SQL Server databases.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VESQLDatabase [-Session] <IVESQLRestoreSession> [[-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:
Publish-VESQLDatabasePublishes a backed-up Microsoft SQL Server database. In Veeam Backup & Replication 13.1, this cmdlet became deprecated. Use the Start-VESQLDatabasePublish cmdlet to publish Microsoft SQL Server databases.Export-VESQLDatabaseExports a backed-up Microsoft SQL Server database. In Veeam Backup & Replication 13.1, this cmdlet became deprecated. Use the Start-VESQLDatabaseExport cmdlet to export Microsoft SQL Server databases.Restore-VESQLDatabaseRestores a backed-up Microsoft SQL Server database. In Veeam Backup & Replication 13.1, this cmdlet became deprecated. Use the Start-VESQLDatabaseRestore cmdlet to restore Microsoft SQL Server databases.Restore-VESQLIRDatabasePerforms instant recovery of a backed-up Microsoft SQL Server database.
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. |
|
False |
2 |
False |
|
Name |
Specifies an array of names for Microsoft SQL Server databases. The cmdlet will return an array of databases with the specified names. |
|
False |
1 |
False |
|
Session |
Specifies an active restore session. The cmdlet will return an array of databases within the specified restore session.
Accepts the |
|
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 Learn.
Output Object
The cmdlet returns the VESQLDatabase[] array that contains backed-up Microsoft SQL Server databases.
Examples
Example 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.
Perform the following steps:
|
Example 2. Getting Microsoft SQL Server Databases with Specified Name
|
This example shows how to get all Microsoft SQL Server databases with the specified name.
Perform the following steps:
|
Example 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.
Perform the following steps:
|
Related Commands
Get-VESQLRestoreSessionReturns active restore sessions started to perform operations with backed-up Microsoft SQL Server databases.