--- title: "Start-VESQLDatabaseExport" description: "Exports a backed-up Microsoft SQL Server database. Product: Veeam Backup & Replication Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet provides the following parameter sets: This cmdlet expor" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/start-vesqldatabaseexport.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft SQL Server > Start-VESQLDatabaseExport" dateModified: "2026-08-18" --- # Start-VESQLDatabaseExport ## Short Description Exports a backed-up Microsoft SQL Server database. **Product**: Veeam Backup & Replication **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets:
ExportUsingCredentials
ExportUsingGmsaAccount
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Database |
Specifies a Microsoft SQL Server database that you want to export. Accepts the |
True |
0 |
True (ByValue) |
|
|
EnableCompression |
For the Defines that the cmdlet will compress the new backup (.bak) file. Note: This option is available only if your version of Microsoft SQL Server supports the compression option. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will overwrite the following files:
Note: The cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
|
GMSAAccount |
Specifies the name of the Group Managed Service Account (gMSA). The cmdlet will use this account to authenticate to Microsoft SQL Server on the target machine. |
|
True |
Named |
False |
|
GuestCredentials |
Specifies credentials for authenticating to the staging server. Consider the following:
Accepts the |
|
False |
Named |
False |
|
InstanceName |
Specifies the Microsoft SQL Server instance on the staging server to which the cmdlet will connect. |
|
False |
Named |
False |
|
Path |
Specifies the export path on the target Windows server. To export your database as a backup (.bak) file, specify the Note: To overwrite an existing file in the export destination, use the |
|
True |
1 |
False |
|
Port |
Specifies a port number that will be used to connect to the staging server. |
|
False |
Named |
False |
|
ServerName |
Specifies DNS name or IP address of the staging server. |
|
False |
Named |
False |
|
SqlCredentials |
Specifies SQL credentials for authenticating to Microsoft SQL Server on the staging server. Note: If you do not specify SQL credentials, the cmdlet will use the current account credentials. If these credentials do not work, the cmdlet will use the credentials specified in the backup job. Accepts the |
|
False |
Named |
False |
|
TargetGuestCredentials |
Specifies credentials to authenticate to the target Windows server. Accepts the |
|
True |
Named |
False |
|
TargetHost |
Specifies the DNS name or IP address of the target Windows server to which the cmdlet will export the database. |
|
False |
Named |
False |
|
ToBackupFile |
Defines that the cmdlet will export the specified Microsoft SQL Server database as a backup (.bak) file. |
|
False |
Named |
False |
|
ToPointInTimeUtc |
Specifies a point in time within the restore interval of a Microsoft SQL Server database. The cmdlet will export the database to the state of the specified point in time. Note: Make sure that the value you assign to this parameter is converted to Universal Coordinated Time (UTC). |
|
False |
Named |
False |
|
UseSQLAuthentication |
Defines that the cmdlet will use SQL authentication to connect to Microsoft SQL Server on the staging server. Note: If you omit this parameter, the cmdlet will use the credentials specified in the |
|
False |
Named |
False |