The following table lists examples of connections strings for various data sources. For more information about the configurations needed to connect to these data source types, see Data Sources Supported by Reporting Services.
|
Data source
|
Example
|
Description
|
|---|
|
SQL Server database on the local server
|
data source="(local)";initial catalog=AdventureWorks
|
Set data source type to SQL Server.
|
|
SQL Server database on the local server
|
data source="(local)";initial catalog=AdventureWorks
|
Set data source type to SQL Server.
|
|
SQL Server Instance
database
|
Data Source=localhost\MSSQL10.InstanceName; Initial Catalog=AdventureWorks
|
Set data source type to SQL Server.
|
|
SQL Server Express database
|
Data Source=localhost\MSSQL10.SQLEXPRESS; Initial Catalog=AdventureWorks
|
Set data source type to SQL Server.
|
|
Analysis Services database on the local server
|
data source=localhost;initial catalog=Adventure Works DW
|
Set data source type to SQL Server Analysis Services.
|
|
Report model data source on a report server configured in native mode
|
Server=http://myreportservername/reportserver; datasource=/models/Adventure Works
|
Specify the report server or document library URL and the path to the published model in the report server folder or document library folder namespace.
|
|
Report model data source on a report server configured in SharePoint integrated mode
|
Server=http://server; datasource=http://server/site/documents/models/Adventure Works.smdl
|
Specify the report server or document library URL and the path to the published model in the report server folder or document library folder namespace.
|
|
SQL Server 2000 Analysis Services server
|
provider=MSOLAP.2;data source=<remote server name>;initial catalog=FoodMart 2000
|
Set the data source type to OLE DB Provider for OLAP Services 8.0.
You can achieve a faster connection to SQL Server 2000 Analysis Services data sources if you set the ConnectTo property to 8.0. To set this property, use the Connection Properties dialog box, Advanced Properties tab.
|
|
Oracle server
|
data source=myserver
|
Set the data source type to Oracle. The Oracle client tools must be installed on the Report Designer computer and on the report server. For more information, see Creating Report Datasets from an Oracle Database.
|
|
SAP NetWeaver BI data source
|
DataSource=http://mySAPNetWeaverBIServer:8000/sap/bw/xml/soap/xmla
|
Set the data source type to SAP NetWeaver BI. For more information, see Creating Report Datasets from an SAP NetWeaver BI Data Source.
|
|
Hyperion Essbase data source
|
Data Source=http://localhost:13080/aps/XMLA; Initial Catalog=Sample
|
Set the data source type to Hyperion Essbase. For more information, see Creating Report Datasets from a Hyperion Essbase Data Source.
|
|
Teradata data source
|
data source=<NNN>.<NNN>.<NNN>.<NNN>;
|
Set the data source type to Teradata. The connection string is an Internet Protocol (IP) address in the form of four fields, where each field can be from one to three digits.
|
|
XML data source, Web service
|
data source=http://adventure-works.com/results.aspx
|
Set the data source type to XML. The connection string is a URL for a web service that supports Web Services Definition Language (WSDL). For more information, see Creating Report Datasets from XML Data.
|
|
XML data source, XML document
|
http://localhost/XML/Customers.xml
|
Set the data source type to XML. The connection string is a URL to the XML document. For more information, see Creating Report Datasets from XML Data.
|
|
XML data source, embedded XML document
|
Empty
|
Set the data source type to XML. The XML data is embedded in the report definition. For more information, see Creating Report Datasets from XML Data
|