Cmdlets for SAP HANA

Build 24.0.9060

Remove-SAPHANA Cmdlet

Parameters   Output Objects  

Deletes SAP HANA data.

Syntax

Remove-SAPHANA [parameters]

Remarks

The Remove-SAPHANA cmdlet allows you to use a syntax similar to SQL DELETE statements to delete SAP HANA data.

$conn = Connect-SAPHANA -User 'system' -Password 'myPassword' -Database 'systemdb' -Server 'myServer'
Remove-SAPHANA -Connection $conn -Table "`"SYSTEMDB`".`"DEMO`".Products" -Id "22"
The Where parameter can also be used to specify the primary key:
Remove-SAPHANA -Connection $conn -Table "exTablePowershell;" -Where "Id = 22"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SAPHANA -Connection $conn -Table "SYSTEMDB"."DEMO".Products -Where "ProductName = 'Konbu'" | Remove-SAPHANA

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060