dbTalk Databases Forums  

Tables from Different Databases in Same Cube?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Tables from Different Databases in Same Cube? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Patti
 
Posts: n/a

Default Tables from Different Databases in Same Cube? - 11-28-2006 , 07:04 PM






Hi,

I'm building a cube (SSAS 2005) and would like to use tables from
different databases as follows:

DI Database has my fact table with the following:
Date
Product
TotalAmount

Utilities Database has a custom time table that aggregates the date in
the fact table to our specific needs (i.e. week(ending on Sunday)).

How can I use the time table in the Utilities database with my fact
table that is in the DI database?
I am able to create the two data source views and dimensions for the
tables, but have not found how to use them in the same cube.

Currently, I created a view in my DI database for the time table so
that all "tables" are in the same database -- solves the problem, but I
would rather not have to build views just to do this.

Thanks,
Patti


Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Tables from Different Databases in Same Cube? - 11-28-2006 , 07:26 PM






One cube can have only one single data source view.

A data source view, however, can reference one or more data source.

Below is from http://msdn2.microsoft.com/en-us/library/ms174778.aspx

---
When defining a data source view that contains tables, views, or columns
from multiple data sources, the first data source from which you add objects
to the data source view is designated as the primary data source (you cannot
change the primary data source after it is defined). After defining a data
source view based on objects from a single data source, you can then add
objects from other data sources. If an OLAP processing or a data mining
query requires data from multiple data sources in a single query, the
primary data source must support remote queries using OpenRowset.
---

Ohjoo


"Patti" <xphile3101 (AT) yahoo (DOT) com> wrote

Quote:
Hi,

I'm building a cube (SSAS 2005) and would like to use tables from
different databases as follows:

DI Database has my fact table with the following:
Date
Product
TotalAmount

Utilities Database has a custom time table that aggregates the date in
the fact table to our specific needs (i.e. week(ending on Sunday)).

How can I use the time table in the Utilities database with my fact
table that is in the DI database?
I am able to create the two data source views and dimensions for the
tables, but have not found how to use them in the same cube.

Currently, I created a view in my DI database for the time table so
that all "tables" are in the same database -- solves the problem, but I
would rather not have to build views just to do this.

Thanks,
Patti




Reply With Quote
  #3  
Old   
Patti
 
Posts: n/a

Default Re: Tables from Different Databases in Same Cube? - 11-30-2006 , 05:50 PM



Thanks! That works

Ohjoo Kwon wrote:
Quote:
One cube can have only one single data source view.

A data source view, however, can reference one or more data source.

Below is from http://msdn2.microsoft.com/en-us/library/ms174778.aspx

---
When defining a data source view that contains tables, views, or columns
from multiple data sources, the first data source from which you add objects
to the data source view is designated as the primary data source (you cannot
change the primary data source after it is defined). After defining a data
source view based on objects from a single data source, you can then add
objects from other data sources. If an OLAP processing or a data mining
query requires data from multiple data sources in a single query, the
primary data source must support remote queries using OpenRowset.
---

Ohjoo


"Patti" <xphile3101 (AT) yahoo (DOT) com> wrote in message
news:1164762299.660006.61420 (AT) h54g2000cwb (DOT) googlegroups.com...
Hi,

I'm building a cube (SSAS 2005) and would like to use tables from
different databases as follows:

DI Database has my fact table with the following:
Date
Product
TotalAmount

Utilities Database has a custom time table that aggregates the date in
the fact table to our specific needs (i.e. week(ending on Sunday)).

How can I use the time table in the Utilities database with my fact
table that is in the DI database?
I am able to create the two data source views and dimensions for the
tables, but have not found how to use them in the same cube.

Currently, I created a view in my DI database for the time table so
that all "tables" are in the same database -- solves the problem, but I
would rather not have to build views just to do this.

Thanks,
Patti



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.