Complete the following steps to add data to Data Engine using SSAS service:
Property | Description | Example |
---|---|---|
Data Source | Specifies the server instance. This property is required for all connections. Valid values include the network name or IP address of the server, local or localhost for local connections, or the name of a local cube (.cub) file. | Data source=AW-SRV01.corp.Adventure-Works.com |
Initial Catalog or Catalog | Specifies the name of the Analysis Services database to connect to. The database must be deployed on Analysis Services, and you must have permission to connect to it. | Initial catalog=AdventureWorks2016 |
Provider | Valid values include MSOLAP.<version>, where <version> is either 4, 5, 6 or 7. | Provider=MSOLAP.7 is used for connections that require the SQL Server 2016 |
Startup.cs |
Copy Code
|
---|---|
public class Startup { private readonly HttpConfiguration config = GlobalConfiguration.Configuration; public void Configuration(IAppBuilder app) { app.UseDataEngineProviders() .AddCube("cube", @"Data Source=http://ssrs.componentone.com/OLAP/msmdpump.dll;Provider=msolap;Initial Catalog=AdventureWorksDW2012Multidimensional", "Adventure Works"); // CORS supports app.UseCors(CorsOptions.AllowAll); // Web Api RegisterRoutes(config); app.UseWebApi(config); } |