PackagesDatasourceConnections Property

The PackageDataSourceConnections property returns the collection of PackageDatasourceConnection objects associated with a Package or Report object.

Syntax

object .PackageDatasourceConnections

Applies To

Package Object

Discussion

In order to use this property, ensure that there is at least one query assigned to the Package or Report.

Use this property to iterate through the data source connections for a Package or Report, add new connections, change connection properties, or remove connections.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Type

PackageDatasourceConnections

Access

Read

Examples

package = model.Packages.Add()connection 
= package.PackageDatasourceConnections.Add()