Export (0) Print
Expand All

LogProvider.ConfigString Property

Gets or sets the connection and configuration information for the specific log provider.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

function get ConfigString () : String 
function set ConfigString (value : String)

Property Value

Type: System.String
A String that contains the configuration state to either save or load.

The configuration string contains connection and configuration information specific to the provider. Each provider has configuration settings that are unique to that provider, and these properties are set using the ConfigString property.

The following table lists the available log providers, their description, and their ConfigString information.

Provider

Description

ConfigString property

SQL Server Profiler

Generates SQL traces that may be captured and viewed in SQL Server Profiler. The default file name extension for this provider is .trc.

No configuration is required.

SQL Server

Writes event log entries to the sysssislog table in any SQL Server database.

SQL Server provider requires that the connection to the database be specified, and also the target database name.

Text File

Writes event log entries to ASCII text files in a comma-separated value (CSV) format. The default file name extension for this provider is .log.

The name of a file connection manager.

Windows Event Log

Logs to standard Windows Event Log on the local computer in the Application log.

No configuration is required.

XML File

Writes event log entries to XML formatted file. The default file name extension for this provider is .xml

The name of the XML connection manager.

The following code example loads a package for which logging has been enabled. After loading the package, the LogProviders collection is created, and each log provider in the collection is enumerated over, printing the values for each property, including the ConfigString.

No code example is currently available or this language may not be supported.

Sample Output:

ConfigString:

CreationName DTS.LogProviderTextFile.1

DelayValidation False

Description Writes log entries for events to a CSV file

HostType LogProvider

ID {1E107E39-DB79-4F02-B8A7-61D88F2DEF63}

InnerObject System.__ComObject

Name SSIS log provider for Text files

Community Additions

ADD
Show:
© 2014 Microsoft