Cmdlets for DB2

Build 23.0.8839

SwitchMode Parameter (Connect-DB2 Cmdlet)

This property allows you to specify a switching mode to select a server from AlternateServers as the active server.


Connect-DB2 -SwitchMode string

Possible Values

None, Failover, LoadBalance

Data Type


Default Value



There are three switching modes available: None: Always use the default server. Failover: When the active server cannot be accessed, another server in AlternateServers will be used as the active server. LoadBalance: This option includes the feature of "Failover". In addition, the active server will also be changed after a transcation is committed.

Specify SwitchMode:


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