RemoveFromRepository Method (DTS)

The RemoveFromRepository method removes the package from the specified repository.

Applies To
Package Object  

Syntax

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

Part Description
Package Expression that evaluates to an object in the Applies To list
RepositoryServerName Repository server name
RepositoryDatabaseName Repository username
RepositoryUsername 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
PackageName Package name
Flags DTS Repository Storage Flags constant

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 removed.

Prototype (C/C++)

HRESULT RemoveFromRepository(BSTR RepositoryServerName,
BSTR RepositoryDatabaseName,
BSTR RepositoryUserName,
BSTR RepositoryUserPassword,
BSTR PackageID,
BSTR VersionID),
BSTR PackageName,
DTS Repository Storage Flags Flags);

  


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