Cmdlets for IBM Cloud SQL Query

Build 20.0.7654

Invoke-IBMCloudSQLQuery Cmdlet

Parameters   Output Objects  

Searches and updates IBM Cloud SQL Query data.

Syntax

Invoke-IBMCloudSQLQuery [parameters]

Remarks

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

$query = Invoke-IBMCloudSQLQuery -Connection $connection -Query 'SELECT * FROM Jobs WHERE UserId=@UserId' -Params @{'@UserId'='gentit@cdata.com'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-IBMCloudSQLQuery -Connection $connection -Query 'EXEC SelectEntries ObjectName = @ObjectName' -Params @{"Account"}

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