Udostępnij za pośrednictwem


DataSourceReference Element (RDL)

Contains the path to a shared data source.

Syntax

<DataSource> Name="...">
     ...
      <DataSourceReference>...</DataSourceReference>
    ...
</DataSource>

Element Characteristics

Characteristic Description

Data type and length

String

Default value

None

Cardinality

0-1: Optional element that can occur once or not at all. For additional information, see "Remarks."

Element Relationships

Relationship Element

Parent element

DataSource

Child element

None

Remarks

The DataSourceReference element can contain a full folder path (for example, /SampleReports/AdventureWorks) or a relative path (for example, AdventureWorks). Relative paths start in the same folder as the report. The shared data source must be on the same server as the report.

The DataSource element, which is the parent of DataSourceReference, must contain either a ConnectionProperties element or a DataSourceReference element, but it cannot contain both.

See Also

Reference

Report Definition XML Elements
ConnectionProperties Element (RDL)

Help and Information

Getting SQL Server 2005 Assistance