TransSubscription.SecureDtsPackagePassword 属性

定义

将密码 (设置为SecureString用于运行 Microsoft SQL Server 2000 数据转换服务 (DTS) 包的对象) 。

public:
 property System::Security::SecureString ^ SecureDtsPackagePassword { System::Security::SecureString ^ get(); void set(System::Security::SecureString ^ value); };
public System.Security.SecureString SecureDtsPackagePassword { get; set; }
member this.SecureDtsPackagePassword : System.Security.SecureString with get, set
Public Property SecureDtsPackagePassword As SecureString

属性值

一个 SecureString 值。

注解

SecureDtsPackagePassword 属性在存储于内存中时为密码提供额外的安全性,应使用而不是 DtsPackagePassword使用。

如果可能,请在运行时提示用户输入安全凭据。 如果必须存储凭据,请使用 Windows .NET Framework 提供的 Cryptographic Services Microsoft (加密服务)。

密码从不由 SecureDtsPackagePassword. 返回。

只有 sysadmin 固定服务器角色成员或 db_owner 固定数据库角色成员才能设置 SecureDtsPackagePassword 属性。

设置 SecureDtsPackagePassword 等效于执行 Transact-SQL) sp_change_subscription_properties (Transact-SQL) sp_addpushsubscription_agent (。

适用于