ConnectionManager::ProtectionLevel Property
Gets or sets the level of encryption performed on sensitive data that is contained in the package.
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
public: [BrowsableAttribute(false)] property DTSProtectionLevel ProtectionLevel { DTSProtectionLevel get(); void set(DTSProtectionLevel value); }
Property Value
Type: Microsoft.SqlServer.Dts.Runtime::DTSProtectionLevelA DTSProtectionLevel enumeration.
The following code example loads an existing package that has two connections. It iterates through the connection managers in the package and prints out the values for the various properties, including the ProtectionLevel.
Sample Output:
The number of connections in the package is: 2
ConnectionString: Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Auto Translate=False;
CreationName: OLEDB
DelayValidation: False
Description:
HostType: ConnectionManager
ID: {3427BFE1-F10C-4B7E-8E70-E8D9DC7DDBA3}
InnerObject: System.__ComObject
Name: localhost.AdventureWorks
ProtectionLevel: EncryptSensitiveWithUserKey
SupportsDTCTransactions: True
ConnectionString: C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\results.txt
CreationName: FLATFILE
DelayValidation: False
Description:
HostType: ConnectionManager
ID: {48B66F8D-7DFE-4D85-91C7-0999655484B2}
InnerObject: System.__ComObject
Name: Transaction Summary by Product1
ProtectionLevel: EncryptSensitiveWithUserKey
SupportsDTCTransactions: False