ODBC Connection Type (SSRS)

To include data from an ODBC data provider, you must have a dataset that is based on a report data source of type ODBC. This built-in data source type is based on the Microsoft SQL Server Reporting Services ODBC data processing extension.

Use the information in this topic to build a data source. For step-by-step instructions, see Add and Verify a Data Connection (Report Builder and SSRS).

Connection String

The connection string for the ODBC data processing extension depends on the ODBC driver that you want. A typical connection string contains name/value pairs that are supported by the driver. For example, the following connection string specifies the ODBC driver for SQL Server Native Client and the AdventureWorks database:

Driver={SQL Server Native Client 10.0};Server=server;Database=AdventureWorks;Trusted_Connection=yes;  

Credentials

Credentials are required to run queries, to preview the report locally, and to preview the report from the report server.

After you publish your report, you may need to change the credentials for the data source so that when the report runs on the report server, the permissions to retrieve the data are valid.

If you configure your ODBC data source to prompt for a password or to include the password in the connection string, and a user enters the password with special characters such as punctuation marks, some underlying data source drivers cannot validate the special characters. When you process the report, the message "Not a valid password" might indicate this problem. If changing the password is impractical, you can work with your database administrator to store the appropriate credentials on the report server as part of a system ODBC data source name (DSN). For more information, see "OdbcConnection.ConnectionString" in the .NET Framework SDK documentation.

Note

It is recommended that you do not add login information such as passwords to the connection string. Report Builder provides a separate tab on the Data Source dialog box that you can use to enter credentials.

For more information, see Create data connection strings - Report Builder & SSRS or Specify Credential and Connection Information for Report Data Sources.

Remarks

ODBC is an early data access technology that preceded OLEDB. ODBC supports only relational data sources. ODBC data providers are called drivers. ODBC drivers are provided by Microsoft and third party vendors. For example, Microsoft Office installs ODBC drivers that connect to Office file formats.

Before you can build an ODBC connection string, you must have ODBC drivers installed and build a machine or system DSN. To successfully retrieve the data that you want, you must provide query syntax that is supported by the driver. Parameter support varies by driver. For more information, see topics that are specific to the driver that you select, for example, SQL Server Native Client (ODBC).

Platform and Version Information

For more information about specific ODBC data providers, see Data Sources Supported by Reporting Services (SSRS).

How-To Topics

This section contains step-by-step instructions for working with data connections, data sources, and datasets.

Add and Verify a Data Connection (Report Builder and SSRS)

Create a Shared Dataset or Embedded Dataset (Report Builder and SSRS)

Add a Filter to a Dataset (Report Builder and SSRS)

These sections of the documentation provide in-depth conceptual information about report data, as well as procedural information about how to define, customize, and use parts of a report that are related to data.

Report Datasets (SSRS)
Provides an overview of accessing data for your report.

Create data connection strings - Report Builder & SSRS
Provides information about data connections and data sources.

Report Embedded Datasets and Shared Datasets (Report Builder and SSRS)
Provides information about embedded and shared datasets.

Dataset Fields Collection (Report Builder and SSRS)
Provides information about the dataset field collection generated by the query.

Data Sources Supported by Reporting Services (SSRS). Provides in-depth information about platform and version support for each data extension.