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.
Package Object |
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 |
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.
HRESULT LoadFromRepository(BSTR RepositoryServerName,
BSTR RepositoryUserName,
BSTR RepositoryDatabaseName,
BSTR RepositoryUserPassword,
BSTR PackageID,
BSTR VersionID,
LPUNKNOWN pUnkPersistStgOfHost);