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

Get-VESQLDatabaseFile

Short Description

Returns full filenames for Microsoft SQL databases.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

Get-VESQLDatabaseFile [-Database] <VESQLDatabase>  [<CommonParameters>]

Detailed Description

This cmdlet returns an array of full filenames for Microsoft SQL databases.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Database

Specifies a Microsoft SQL database. The cmdlet will return an array of full filenames for the specified database.

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

True

0

True (ByValue)

False

<CommonParameters>

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

Return Type

VESQLDatabaseFile[]

Example

This example shows how to get a list of full filenames for 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-VESQLDatabase cmdlet with the $session variable to get the Microsoft SQL database. Save the result to the $database variable.
  3. Run the Get-VESQLDatabaseFile cmdlet with the $database variable.

$database = Get-VESQLDatabase

Get-VESQLDatabaseFile -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