TechNet
Export (0) Print
Expand All

Retrieving Data from an Analytical Data Source

 

Applies To: SQL Server 2016 Preview

Once you make a connection and create the query, you can retrieve any data. In ADOMD.NET, you can retrieve data using three different objects (CellSet, AdomdDataReader, and System.Xml.XmlReader) by calling one of the Execute methods of the AdomdCommand object.

Each of these three objects balances interactivity and overhead:

  • Interactivity refers to the ease-of-use and amount of information available through the object model.

  • Overhead refers to the amount of traffic that an object model generates over the network connection to the server, the amount of memory needed for the object model, and the speed with which the object model retrieves data.

To help you select the data retrieval object that best suits the needs of your application, the following table highlights the differences between interactivity and overhead for each object.

ObjectInteractivityOverheadRetains dimensionalityUsage Information
CellSetHighestModerately high, which results in slowest retrieval of dataYesRetrieving Data Using the CellSet
AdomdDataAdapterModerateModerateNoPopulating a DataSet from a DataAdapter
AdomdDataReaderModerateModerateNoRetrieving Data Using the AdomdDataReader
System.Xml.XmlReaderLowestLowest, which results in fastest data retrievalYesRetrieving Data Using the XmlReader

ADOMD.NET Client Programming

Community Additions

ADD
Show:
© 2016 Microsoft