LoadFromStorageFile Method

DTS Programming

DTS Programming

LoadFromStorageFile Method

The LoadFromStorageFile method loads the Data Transformation Services (DTS) package from the specified structured storage file. This includes information held in the objects and collections that belong to the Package object.

Applies To
Package Object Package2 Object
Syntax

object.LoadFromStorageFile UNCFile, Password, [PackageID], _
    [VersionID], [Name], [pVarPersistStgOfHost]

Part Description
object Expression that evaluates to an object in the Applies To list.
UNCFile File specification of DTS package storage file.
Password Package password if the package is encrypted.
PackageID Package identifier, which is a string representation of a globally unique identifier (GUID).
VersionID Version identifier, which is a string representation of a GUID.
Name Package name.
pVarPersistStgOfHost Screen layout information associated with a package (for internal use only).

Remarks

If VersionID is not specified or is blank, the most recent version of the package is retrieved.

Prototype (C/C++)

HRESULT LoadFromStorageFile(
    BSTR UNCFile,
    BSTR Password,
    BSTR PackageID,
    BSTR VersionID CPPDEFAULT(= NULL),
    BSTR Name CPPDEFAULT(= NULL),
    VARIANT *pUnkPersistStgOfHost CPPDEFAULT(= NULL));

See Also

LoadFromRepository Method

LoadFromSQLServer Method

Managing DTS Package Programs

SaveToStorageFile Method

SaveToStorageFileAs Method