adomd.net

Python - “KeyError : System.Object” - Pyadomd - Querying a SSAS Data Source [SOLVED]

半世苍凉 提交于 2020-06-01 05:10:48
问题 Working on a project where I am trying to query a SSAS data source we have at work through Python. The connection is presently within Excel files, but I am trying to reverse engineer the process with Python to automate part of the analysis I do on a day to day... I use the pyadomd library to connect to the data source, here`s my code: clr.AddReference(r"C:\Program Files (x86)\Microsoft Office\root\vfs\ProgramFilesX86\Microsoft.NET\ADOMD.NET\130\Microsoft.AnalysisServices.AdomdClient.dll") clr

Retrieve Datareader using Objects

青春壹個敷衍的年華 提交于 2020-01-14 05:35:10
问题 I have worked on retrieving the data from SQL database using Datareader and populate it in Datatable.. But, I am wondering whether is there any way to handle the data from datareader without using datatable ? I mean- handling the table values using Objects should be more preferable.. But, I dont want to use LINQ here since, I am going to use ADOMD object to pull the data from database(Cubes).. 回答1: Have a look at dapper-dot-net. I'm not sure how it works with ADOMD.NET, but it does neatly

Azure analysis service connection using Service principal not working

帅比萌擦擦* 提交于 2019-12-24 07:23:06
问题 I am trying to connect to Azure Analysis services using ADOMD and authenticated using a Service principal. So I have done following: Create app in AAD. Granted the app (Service principal) read permission on the Azure Analysis service. Below is my code to connect to Azure Analysis service. var clientId = "******"; var clientSecret = "*****"; var domain = "****.onmicrosoft.com"; var ssasUrl = "northeurope.asazure.windows.net"; var token = await TokenHelper.GetAppOnlyAccessToken(domain, $"https:

How to connect to MS SQL Server database from ASP using windows authentication specifying a windows user

纵饮孤独 提交于 2019-12-24 04:12:15
问题 I've been trying for just over a month to connect an ASP script here to a SQL Server database but each time I use this connection string: Data Source=dbServer01;Initial Catalog=POS123;Integrated Security=SSPI;User ID=domain\usr;Password=pwd; It ignores the user I specify and takes the machine name to authenticate the connection, which obviously fails. so I change the Integrated Security value to False, like this: Data Source=dbServer01;Initial Catalog=POS123;Integrated Security=False;User ID

How to connect to MS SQL Server database from ASP using windows authentication specifying a windows user

最后都变了- 提交于 2019-12-24 04:12:15
问题 I've been trying for just over a month to connect an ASP script here to a SQL Server database but each time I use this connection string: Data Source=dbServer01;Initial Catalog=POS123;Integrated Security=SSPI;User ID=domain\usr;Password=pwd; It ignores the user I specify and takes the machine name to authenticate the connection, which obviously fails. so I change the Integrated Security value to False, like this: Data Source=dbServer01;Initial Catalog=POS123;Integrated Security=False;User ID

How to execute a MDX query of SQL Analysis Server in C#

﹥>﹥吖頭↗ 提交于 2019-12-12 16:23:08
问题 I want to execute a SQL Analysis Query in C#. I have successfully connected to Analysis database using the below code: Server DM_Server = new Server(); Database AS_Database = new Database(); DM_Server.Connect(//SQL Analysis Server Connection String); AS_Database = DM_Server.Databases[//Database name]; I have a SQL query like SELECT FLATTENED PredictAssociation() From [Mining Structure Name] NATURAL PREDICTION JOIN (SELECT (SELECT 1 AS [UserId]) AS [Vm]) AS t 回答1: You need to use ADOMD.NET

Connecting to Analysis Service from ASP.net application

一个人想着一个人 提交于 2019-12-12 04:16:17
问题 I am trying to implement ASP.net application which will need to connect Microsoft Analysis Service (SSAS) to retrive data from cube as well as dimensions. static void Main(string[] args) { StringBuilder connectionStringBuilder = new StringBuilder(); connectionStringBuilder.Append("Data Source=MyDataSource;"); connectionStringBuilder.Append("Initial Catalog=MyOlapDatabase;"); connectionStringBuilder.Append(@"User Id=OlapServerMachineName\MyUserName;"); connectionStringBuilder.Append("Password

Kerberos Double-Hop Issue between IIS and SSAS [duplicate]

三世轮回 提交于 2019-12-11 21:12:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Can I turn off impersonation just in a couple instances I've created an application that, when uploaded to my server throws the following exceptions: [Win32Exception (0x80004005): No credentials are available in the security package] [AdomdConnectionException: Authentication failed.] Here is my connection string: public AdomdConnection conn = new AdomdConnection("Data Source=BTN-SQL1;Initial Catalog

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

落爺英雄遲暮 提交于 2019-12-10 00:54:46
问题 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