Cmdlets for DB2

Build 25.0.9434

Readonly Parameter (Connect-DB2 Cmdlet)

Toggles read-only access to DB2 from the provider.

Syntax

Connect-DB2 -Readonly SwitchParameter

Data Type

bool

Default Value

false

Remarks

When set to True, the cmdlet allows only SELECT queries. Attempting an INSERT, UPDATE, DELETE, or stored procedure query fails with an error message.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434