Cmdlets for DB2

Build 23.0.8770

Connect-DB2 Cmdlet

Parameters   Output Objects  

Opens a new connection to DB2.

Syntax

$DB2Connection = Connect-DB2 [parameters]

Remarks

The Connect-DB2 cmdlet is used to create a persistent connection object to be used with related cmdlets. When executing the cmdlet a connection object is returned. Pass this object to the Connection parameter of related cmdlets to use the newly created connection object. To close the connection, call Disconnect-DB2.

See Establishing a Connection for common connection parameters and more information.

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