Partager via


DTSPackagePassword Property (Replication ActiveX)

The DTSPackagePassword property returns or sets the owner password used to access the Microsoft® SQL Server™ 2000 Data Transformation Services (DTS) package specified by the DTSPackageFileName property.

ms147357.security(fr-fr,SQL.90).gifRemarque relative à la sécurité :
When possible, prompt users to enter their credentials at run time. Avoid hard-coding or storing credentials in a file. If credentials must be persisted between runs, encrypt them using the Win32 CryptoAPI functions. For more information, see this Microsoft Web site.

Syntaxe

object.DTSPackagePassword [= string]
Part Description

object

Expression that evaluates to a SQLDistribution Object (Replication ActiveX) object.

string

Password needed to access the specified DTS package.

Applies To

SQLDistribution Object (Replication ActiveX)

Notes

This property is only supported for packages created in SQL Server 2000 and requires that the SQL Server 2000 DTS runtime be installed. For more information, see Transformation de données publiées.

The DTS owner password must be provided for this property. The required access cannot be obtained with the user password.

This property returns the value to which the property was most recently set. It cannot be used to return the actual owner password of the DTS package specified by DTSPackageFileName Property (Replication ActiveX), unless it was set to that value previously.

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT DTSPackagePassword(BSTR pVal);
HRESULT DTSPackagePassword(BSTR* pVal);