LoadFromStorageFile Method (DTS)

The LoadFromStorageFile method loads the 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  

Syntax

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

Part Description
Package Expression that evaluates to an object in the Applies To list
UNCFile File name
Password Package password if the package is encrypted
PackageID ITDS package identifier
RevisionID Version identifier
Name Package name
pVarPersistStgOfHost Screen layout information associated with a package (for internal use)

Remarks

If RevisionID 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 RevisionID,
BSTR Name,
LPUNKNOWN pUnkPersistStgOfHost);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.