Cmdlets for SAP HANA

Build 24.0.9060

Update-SAPHANA Cmdlet

Parameters   Output Objects  

Updates SAP HANA data.

Syntax

Update-SAPHANA [parameters]

Remarks

The Update-SAPHANA cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SAP HANA data.

$conn = Connect-SAPHANA -User 'system' -Password 'myPassword' -Database 'systemdb' -Server 'myServer'
Update-SAPHANA -Connection $conn -Table "`"SYSTEMDB`".`"DEMO`".Products" -Columns @("ProductName") -Values @("Ikura") -Id "22"
The Where parameter can also be used to specify the primary key of the table:
Update-SAPHANA -Connection $conn -Table "`"SYSTEMDB`".`"DEMO`".Products" -Columns @("ProductName") -Values @("Ikura") -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'" | Update-SAPHANA -Columns @("ProductName") -Values @("Konbu 2")

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