Cmdlets for EnterpriseDB

Build 21.0.7930

Invoke-EnterpriseDB Cmdlet

Parameters   Output Objects  

Searches and updates EnterpriseDB data.

Syntax

Invoke-EnterpriseDB [parameters]

Remarks

The Invoke-EnterpriseDB cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-EnterpriseDB -Connection $connection -Query 'SELECT * FROM "postgres"."public".Orders WHERE ShipCountry=@ShipCountry' -Params @{'@ShipCountry'='USA'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-EnterpriseDB -Connection $connection -Query 'EXEC SelectEntries ObjectName = @ObjectName' -Params @{"Account"}

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930