Search This Blog

Thursday, October 14, 2010

Sql Connection String Examples

A data connection includes a connection string that is typically provided by the owner of the external data source. The following table lists examples of connections strings for different types of external data sources.
Data sourceExampleDescription
SQL Server database on the local serverdata source="(local)";initial catalog=AdventureWorksSet data source type to SQL Server.
SQL Server instance databaseData Source=localhost\MSSQL10_50.InstanceName; Initial Catalog= AdventureWorksSet data source type to SQL Server.
SQL Server Express databaseData Source=localhost\MSSQL10_50.SQLEXPRESS; Initial Catalog= AdventureWorksSet data source type to SQL Server.
Analysis Services database on the local serverdata source=localhost;initial catalog=Adventure Works DWSet data source type to SQL Server Analysis Services.
SharePoint Listdata source=http://MySharePointWeb/MySharePointSite/Set data source type to SharePoint List.
SQL Server 2000 Analysis Services serverprovider=MSOLAP.2;data source=;initial catalog=FoodMart 2000Set 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.
Report ModelsNot applicable. You do not need a connection string for a report model. In Report Builder, browse to the report server and select the .smdl file that is the report model.
Oracle serverdata source=myserverSet the data source type to Oracle. The Oracle client tools must be installed on the Report Builder computer and on the report server.
SAP NetWeaver BI data sourceDataSource=http://mySAPNetWeaverBIServer:8000/sap/bw/xml/soap/xmlaSet the data source type to SAP NetWeaver BI.
Hyperion Essbase data sourceData Source=http://localhost:13080/aps/XMLA; Initial Catalog=SampleSet the data source type to Hyperion Essbase.
Teradata data sourcedata source=...; 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.
Teradata data sourceDatabase=; data source=N>...NN>;Use X Views=False;Restrict to Default Database=TrueSet the data source type to Teradata, similar to the previous example. Only use the default database that is specified in the Database tag, and do not automatically discover data relationships.
XML data source, Web servicedata source=http://adventure-works.com/results.aspxSet the data source type to XML. The connection string is a URL for a web service that supports Web Services Definition Language (WSDL).
XML data source, XML documenthttp://localhost/XML/Customers.xmlSet the data source type to XML. The connection string is a URL to the XML document.
XML data source, embedded XML documentEmptySet the data source type to XML. The XML data is embedded in the report definition.

No comments:

Post a Comment