SaveToStorageFile Method

DTS Programming

DTS Programming

SaveToStorageFile Method

The SaveToStorageFile method saves the information being held in the Package2 object and its subordinate objects and collections to a structured storage file.

Applies To
Package Object Package2 Object
Syntax

object.SaveToStorageFile(
    [UNCFile],
    [OwnerPassword],
    [OperatorPassword],
    [pVarPersistStgOfHost],
    [bReusePasswords])

Part Description
object Expression that evaluates to an object in the Applies To list
UNCFile File specification to which package is to be written
OwnerPassword A string specifying the package owner password if the package is encrypted
OperatorPassword A string specifying the package user password if the package is encrypted
pVarPersistStgOfHost Screen layout information associated with a package (for internal use)
bReusePasswords A Boolean specifying whether to reuse package passwords

Remarks

A new version ID value is always generated when the package is saved.

The default for bReusePasswords is True.

Prototype (C/C++)

HRESULT SaveToStorageFile(
    BSTR UNCFile,
    BSTR OwnerPassword
    BSTR OperatorPassword
    VARIANT *pVarPersistStgOfHost
    VARIANT_BOOL bReusePasswords );

See Also

Managing DTS Package Programs

SaveAs Method

SaveToRepository Method

SaveToSQLServer Method

SaveToStorageFileAs Method