adomd.net

How to test connection to a data source in SSAS using C#

走远了吗. 提交于 2019-12-07 08:44:38
问题 I have a database in Analysis Services on a remote server. This contains a data source for another database located on another remote server. I am trying to write a connectivity test using C# which will check the database connection between the two databases. I have been unable to do this using ADOMD.NET. I'm currently looking at using SMO to do this but I haven't had any luck so far. I would greatly appreciate any advice or suggestions. Update: After further research, I have come up with the

How to test connection to a data source in SSAS using C#

元气小坏坏 提交于 2019-12-05 16:18:47
I have a database in Analysis Services on a remote server. This contains a data source for another database located on another remote server. I am trying to write a connectivity test using C# which will check the database connection between the two databases. I have been unable to do this using ADOMD.NET. I'm currently looking at using SMO to do this but I haven't had any luck so far. I would greatly appreciate any advice or suggestions. Update: After further research, I have come up with the below test (Please note that I intend to add more try..catch blocks and Assertions later). Also, this

Adding Adomd parameters programmatically C#

南笙酒味 提交于 2019-12-05 03:54:11
问题 Afternoon all. I'm building a web app and I'm attempting to pull through some data from an SSAS cube. I have the following MDX I would like to replicate in c# but with adding a few parameters i.e. two parameteres, one for company 123 and another for location 1: @"SELECT NON EMPTY([Dim Unit].[All Units].[Category Group Name]) ON COLUMNS FROM [Info] WHERE ([Dim Company].[All Companies].&[123], [Dim Location].[All Locations].&[123]&[1])"; Now, I can get this up and running with one parameter:

First Step into ADOMD.Net - Cannot reference Microsoft.AnalysisServices

本秂侑毒 提交于 2019-12-05 00:43:53
Can someone help me out please, as google is not providing the answers. I've got a SharePoint 2007 setup which uses SQL Server 2008 R2 SSAS OLAP cubes via some web parts. As a C# developer, Sharepoint is a nightmare, so I decided I needed to try to get to grips with just C# and OLAP interaction. My cubes all exist, and are working, so all I needed to do was create a simple C# App to get it all straight in my mind. I've downloaded Microsoft.AnalysisServices v10.0.0.0 and I can see it sitting happily in my GAC, but I can't add a reference from within my Visual Studio 2010 C# 4.0 project. It's

Connection String error while using ADOMD.NET to connect to Azure Analysis

孤街醉人 提交于 2019-11-28 12:59:27
I am trying to retrieve data from Azure Analysis Services using ADOMD.NET from a deployed model in cloud. The code snippet is as below, but i am getting an error that the ConnectionString in invalid. using Microsoft.AnalysisServices.AdomdClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test_Analysis_Service_retrieval { class Program { static void Main(string[] args) { string queryString = @"SELECT [MAP_CUST_NAME] FROM [AAS_MAPLOOKUP] where [MAP_ACT_NO] = '120000810';"; string

Connection String error while using ADOMD.NET to connect to Azure Analysis

你离开我真会死。 提交于 2019-11-27 07:27:41
问题 I am trying to retrieve data from Azure Analysis Services using ADOMD.NET from a deployed model in cloud. The code snippet is as below, but i am getting an error that the ConnectionString in invalid. using Microsoft.AnalysisServices.AdomdClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test_Analysis_Service_retrieval { class Program { static void Main(string[] args) { string queryString = @