13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

702 Using the SQL Pass-Through Facility with OLAP Data 4 Chapter 24SyntaxThis facility uses the following general syntax. For more in<strong>for</strong>mation about SQLpass-through facility syntax, see Overview of the SQL Pass-Through Facility“Overviewof the SQL Pass-Through Facility” on page 425.PROC SQL ;CONNECT TO OLEDB ();SELECT column-identifier(s) FROM CONNECTION TO OLEDB( MDX:: | MDX_DESCRIBE:: );ExamplesThe following code uses the SQL pass-through facility to pass an MDX statement to aMicrosoft SQL Server Decision Support Services (DSS) Cube. The provider used is theMicrosoft OLE DB <strong>for</strong> OLAP provider named MSOLAP.proc sql noerrorstop;connect to oledb (provider=msolap prompt=yes);select * from connection to oledb( MDX::select {[Measures].[Units Shipped],[Measures].[Units Ordered]} on columns,NON EMPTY [Store].[Store Name].members on rowsfrom Warehouse );See the Microsoft Data Access Components Software Developer’s Kit <strong>for</strong> details aboutMDX syntax.The CONNECT statement requests prompting <strong>for</strong> connection in<strong>for</strong>mation, whichfacilitates the connection process (especially with provider properties). The MDX::prefix identifies the statement within the parentheses that follows the MDX statementsyntax, and is not an SQL statement that is specific to OLAP. Partial output from thisquery might look like this:Store Units Shipped Units OrderedStore6 10,647 11,699Store7 24,850 26,223. . .. . .. . .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!