DTS Programming
ReleaseConnection Method
The ReleaseConnection method releases ownership of the connection and makes it available to other tasks.
Applies To
Connection Object | Connection2 Object |
Syntax
Connection.ReleaseConnection()
Part | Description |
---|---|
Connection | Expression that evaluates to an object in the Applies To list |
Remarks
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.
Prototype (C/C++)
HRESULT ReleaseConnection();