LoadFromRepository Method (DTS)

The LoadFromRepository method loads the DTS package from the specified repository. This includes information held in the objects and collections that belong to the Package object.

Applies To
Package Object  

Syntax

object.LoadFromRepository(
RepositoryServerName,
RepositoryDatabaseName,
RepositoryUserName,
RepositoryUserPassword,
PackageID,
[VersionID],
[PackageName],
[Flags],
[pVarPersistStgOfHost])

Part Description
Package Expression that evaluates to an object in the Applies To list
RepositoryServerName Repository server name
RepositoryUserName Repository username
RepositoryDatabaseName Repository database name or DSN
RepositoryUserPassword Repository user password
PackageID Package identifier, which is a string representation of a GUID
VersionID Version identifier, which is a string representation of a GUID

Remarks

RepositoryDatabaseName is evaluated as an ODBC DSN if RepositoryServerName is empty or NULL. Otherwise, RepositoryServerName and RepositoryDatabaseName are used to create a DSN-less connection.

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

Prototype (C/C++)

HRESULT LoadFromRepository(BSTR RepositoryServerName,
BSTR RepositoryUserName,
BSTR RepositoryDatabaseName,
BSTR RepositoryUserPassword,
BSTR PackageID,
BSTR VersionID,
LPUNKNOWN pUnkPersistStgOfHost);

  


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