The ReleaseConnection method releases ownership of the connection and makes it available to other tasks.
Connection.ReleaseConnection()
Part | Description |
---|---|
Connection | Expression that evaluates to an object in the Applies To list |
The InUse property is set to False. This method is required only if you are creating a custom task. All tasks must include calls to AcquireConnection and ReleaseConnection. The tasks supplied with Microsoft® SQL Server™ 2000 already include them.
Rowsets are always released at the Task object level.
HRESULT ReleaseConnection();