-
Notifications
You must be signed in to change notification settings - Fork 3
Disconnect SsisdbSql
Richie Lee edited this page May 15, 2020
·
1 revision
dispose of a connection to sql instance
Disconnect-SsisdbSql [-sqlConnection] <SqlConnection> [<CommonParameters>]
Using sqldataclient.sqlconnection, dispose a connection to sql instance Dispose method also calls close, so it return connection back to the pool State of conection can be open, closed, broken, connecting, executing, fetching
$mySqlConnection = "Server=.;Integrated Security=True"
Disconnect-SsisdbSql -sqlConnection $mySqlConnection
The connection we wish to dispose of.
Type: SqlConnection
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.