Stop-VESQLDatabaseExport
Short Description
Stops an active export job for a Microsoft SQL Server database.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VESQLDatabaseExport [-DatabaseExport] <VESQLDatabaseExport> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet stops an active export job for a Microsoft SQL Server database.
Note |
|
Export jobs will not stop automatically if you close the PowerShell console. To stop the export job, you must run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DatabaseExport |
Specifies an export job that you want to stop.
Accepts the |
True |
0 |
True (ByValue) |
|
|
Force |
Defines that the cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Examples
Stopping Export Job
This example shows how to stop an export job for a Microsoft SQL Server database.
|
$export = Get-VESQLDatabaseExport Stop-VESQLDatabaseExport -DatabaseExport $export[0] -Force |
Perform the following steps:
- Run the
Get-VESQLDatabaseExportReturns Microsoft SQL Server databases with ongoing export jobs. cmdlet. Save the result to the$exportvariable.The cmdlet will return an array of active export jobs. Note the ordinal number of the necessary export job (in this example, it is the first export job in the array).
- Run the
Stop-VESQLDatabaseExportcmdlet. Set the$exportvariable as theDatabaseExportparameter value and select the necessary export job. Provide theForceparameter.
Related Commands
Get-VESQLDatabaseExportReturns Microsoft SQL Server databases with ongoing export jobs.Start-VESQLDatabaseExportExports a backed-up Microsoft SQL Server database.