CData Cmdlets for Amazon Redshift 2019 - Online Help
Questions / Feedback?

Invoke-Redshift Cmdlet

CData Cmdlets for Amazon Redshift 2019 - Build 19.0.7354

Parameters   Output Objects  

Searches and updates Redshift data.


Invoke-Redshift [parameters]


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

$query = Invoke-Redshift -Connection $connection -Query 'SELECT * FROM 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-Redshift -Connection $connection -Query 'EXEC SelectEntries ObjectName = @ObjectName' -Params @{"Account"}

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0