https://github.com/ogaudefroy/glimpse.adomd
Glimpse support for ADOMD components
https://github.com/ogaudefroy/glimpse.adomd
glimpse mdx ssas
Last synced: 4 months ago
JSON representation
Glimpse support for ADOMD components
- Host: GitHub
- URL: https://github.com/ogaudefroy/glimpse.adomd
- Owner: ogaudefroy
- License: mit
- Created: 2015-06-26T17:24:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T16:51:32.000Z (almost 10 years ago)
- Last Synced: 2025-01-03T12:16:39.846Z (over 1 year ago)
- Topics: glimpse, mdx, ssas
- Language: C#
- Size: 17 MB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Glimpse.Adomd
Glimpse support for ADOMD components
[](https://ci.appveyor.com/project/ogaudefroy/glimpse-adomd/branch/master) [](https://badge.fury.io/nu/Glimpse.Adomd)

Requires the usage of [Microsoft.AnalysisServices.AdomdClient.Abstractions](https://github.com/ogaudefroy/Microsoft.AnalysisServices.AdomdClient.Abstractions) to support native component substitution.
## Setup
- Replace your regular AdomdConnection with GlimpseAdomdConnection
- You can create your command by
- Calling the CreateCommand method available in the connection
- Instantiating a new GlimpseAdomdCommand
## Usage
```C#
using (var conn = new GlimpseAdomdConnection(connStr))
{
conn.Open();
var cmd = conn.CreateCommand();
cmd.CommandText = "SELECT [Date].[Calendar Year].[StrToMember(@CalendarYear)] on 0 FROM [Adventure Works];";
var parameter = cmd.CreateParameter();
parameter.ParameterName = "CalendarYear";
parameter.Value = "CY 2012";
cmd.Parameters.Add(parameter);
return cmd.ExecuteCellSet();
}
```