Home > Archive > SQL Server JDBC > April 2006 > JDBC and OLAP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JDBC and OLAP
SQL Server - Novice

2006-03-29, 7:23 am

Can JDBC be used for retrieve data from OLAP Cube ?
or retrieve data from database only ?

David Browne

2006-04-02, 8:23 pm


"SQL Server - Novice" <SQL Server - Novice@discussions.microsoft.com> wrote
in message news:AE1D7040-346D-46E9-8B74- B1D63BDE277B@microso
ft.com...
> Can JDBC be used for retrieve data from OLAP Cube ?
> or retrieve data from database only ?
>


Yes, but only if the Analysis Services instance is set up as a linked
server.

Using a linked server SQL Server can route queries to heterogenous back-end
systems. One of the systems it supports is SQL Server Analysis Services.


You would end up sending a query like

SELECT a.* FROM OpenRowset('MSOLAP',
'DATASOURCE=myOlapSe
rver; Initial
Catalog=FoodMart;',
'SELECT
{ Time.Year.[1997] } ON COLUMNS,
NON EMPTY Store.MEMBERS ON ROWS
FROM Sales
WHERE ( Product.[Product Category].[Dairy] )') as a

See

How to perform a SQL Server distributed query with OLAP Server
http://support.microsoft.com/defaul...kb;en-us;218592

For details.

David


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com