Here are the examples of the csharp api class Microsoft.AnalysisServices.AdomdClient.AdomdCommand.ExecuteReader() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: NBi
Source File: MembersCommand.cs
Source File: MembersCommand.cs
protected AdomdDataReader ExecuteReader(AdomdCommand cmd) { AdomdDataReader rdr = null; try { rdr = cmd.ExecuteReader(); return rdr; } catch (AdomdConnectionException ex) { throw new ConnectionException(ex, cmd.Connection.ConnectionString); } catch (AdomdErrorResponseException ex) { throw new ConnectionException(ex, cmd.Connection.ConnectionString); } }
0
2. Example
Project: NBi
Source File: OlapCommand.cs
Source File: OlapCommand.cs
protected AdomdDataReader ExecuteReader(AdomdCommand cmd) { Trace.WriteLineIf(NBiTraceSwitch.TraceInfo, cmd.CommandText); AdomdDataReader rdr = null; try { rdr = cmd.ExecuteReader(); return rdr; } catch (AdomdConnectionException ex) { throw new ConnectionException(ex, cmd.Connection.ConnectionString); } catch (AdomdErrorResponseException ex) { throw new ConnectionException(ex, cmd.Connection.ConnectionString); } }
0
3. Example
Project: Test.Automation
Source File: MdxHelper.cs
Source File: MdxHelper.cs
[SuppressMessage("Microsoft.Security", "CA2100:Review SQL queries for security vulnerabilities", Justification = "Mdx injection is in this case expected.")] public static ICollection<string> ExecuteMdxCommand(string command, string connectionString, int index) { Logger.Debug(CultureInfo.CurrentCulture, "Send mdx query."); Logger.Debug(CultureInfo.CurrentCulture, "Query: {0}", command); Logger.Debug(CultureInfo.CurrentCulture, "AS connection string: {0}", connectionString); Logger.Debug(CultureInfo.CurrentCulture, "Index: {0}", index); var resultList = new List<string>(); using (var connection = new AdomdConnection(connectionString)) { connection.Open(); using (var mdxCommand = new AdomdCommand(command, connection)) { using (var mdxReader = mdxCommand.ExecuteReader()) { while (mdxReader.Read()) { ////getName - column name resultList.Add(mdxReader[index].ToString()); } } } return resultList; } }