Udostępnij za pośrednictwem


How to: Create or Edit a Report-Specific Data Source (Report Designer)

To create a report-specific data source

  1. In Data view, from Dataset, select <New Dataset...>. The Dataset dialog box opens.

  2. From Data Source, select New Data Source.

  3. In Data Link Properties, follow the instructions on the Connection tab. The contents of the Connection, Advanced, and All tabs vary depending on the type of data source. To change the data source type, click the Provider tab and select a data provider.

To edit a report-specific data source

  1. In Data view, in Dataset, select the dataset that contains the data source to edit, and then click the build (...) button. The Dataset dialog box opens.

  2. From Data source, select the data source, and then click the build (...) button.

  3. In Name, type a name for the data source.

    Note

    The data source name is used internally within the report. For clarity, it is recommended that the name of the data source contains the name of the database that is specified in the connection string.

  4. From Type, select a type of data source; for example, SQL Server or OLE DB.

  5. Click Edit to build the connection string. Alternatively, type the connection string in Connection string and skip the following step.

    Note

    To use a shared data source instead of a report data source, click Use Shared data source reference, and then select the shared data source. You cannot edit the type or connection string if Shared data source reference is selected, because those properties are obtained from the shared data source.

  6. In Data Link Properties, follow the instructions on the Connection tab. The contents of the Connection, Advanced, and All tabs vary depending on the type of data source. To change the data source type, click the Provider tab and select a data provider.

See Also

Concepts

Connecting to a Data Source
Report Designer How-to Topics

Other Resources

Report Designer F1 Help

Help and Information

Getting SQL Server 2005 Assistance