The NewDataLink method gets a new Connection object using Microsoft® Data Link files.
[Set object =] collection.NewDataLink(UDLPath)
| Part | Description |
|---|---|
| collection | Expression that evaluates to a Connections collection |
| UDLPath | File specification of the UDL file |
| object | Object Variable of type Connection |
NewDataLink is similar to New, except you supply a UDL path instead of a provider ID.
HRESULT NewDataLink (
BSTR UDLPath,
IDTSConnection **pRetVal);