dbTalk Databases Forums  

Can one, how does one create/build a Cube based on a view or views???

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


Discuss Can one, how does one create/build a Cube based on a view or views??? in the microsoft.public.sqlserver.olap forum.



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

Default Can one, how does one create/build a Cube based on a view or views??? - 09-12-2003 , 01:47 PM






Can one, how does one create/build a Cube based on a view or views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube build?
How could one use a view as a fact table if the view shows zero
records?

I do understand how to build a virtual Cube over two other Cubes. I
understand how to build a Cube off a flat file table in SQL Server. I
suppose I could creat a view, run the view, populate a new table with
that data, and then build a Cube on that???

But how could/would one build a Cube off of one or more views?

Many thanks.

Pete

Pete Hohenhaus
Kirkland, WA, East Side Seattle, USA

Reply With Quote
  #2  
Old   
Jim Kaiser
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-12-2003 , 02:08 PM






A view can be the fact or dimension source. The view does need to return
data to populate the cube or dimension, just as with a table. Just select
the view as you would a table from the list of source objects provided by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote

Quote:
Can one, how does one create/build a Cube based on a view or views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube build?
How could one use a view as a fact table if the view shows zero
records?




Reply With Quote
  #3  
Old   
Tom Chester
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-12-2003 , 02:26 PM



Here's an interesting twist... Analysis Mgr requires that that fact table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote

Quote:
A view can be the fact or dimension source. The view does need to return
data to populate the cube or dimension, just as with a table. Just select
the view as you would a table from the list of source objects provided by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube build?
How could one use a view as a fact table if the view shows zero
records?






Reply With Quote
  #4  
Old   
Pete Hohenhaus
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-14-2003 , 06:06 PM



Tom --

Sorry, I must be thick witted on this one. I don't quite understand
what you said. I get the following error message when I try to use a
view as a fact table:

Error(-2147221425): The object structure is not valid (Fact table size
cannot be 0); Time:9/14/2003 4:05:16 PM

Any further direction would be helpful.

Thanks again.

Pete


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Here's an interesting twist... Analysis Mgr requires that that fact table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message
news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
A view can be the fact or dimension source. The view does need to return
data to populate the cube or dimension, just as with a table. Just select
the view as you would a table from the list of source objects provided by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube build?
How could one use a view as a fact table if the view shows zero
records?




Reply With Quote
  #5  
Old   
Pete Hohenhaus
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-14-2003 , 06:28 PM



Hi Tom --

Thanks but I just don't get it. Every time I attempt to use a view as
a fact table it gives me an error message saying, of course, a fact
table can't have zero rows.

Any other guidance?

Much obliged.

Pete


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Here's an interesting twist... Analysis Mgr requires that that fact table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message
news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
A view can be the fact or dimension source. The view does need to return
data to populate the cube or dimension, just as with a table. Just select
the view as you would a table from the list of source objects provided by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube build?
How could one use a view as a fact table if the view shows zero
records?




Reply With Quote
  #6  
Old   
Tom Chester
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-15-2003 , 12:53 AM



Analysis Manager won't allow a cube to be built if the fact table (physical
or view) has no rows. But if you happen to want an empty cube, you can build
it, process it, delete the data, then reprocess.

tom @ the domain below
www.tomchester.net


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote

Quote:
Hi Tom --

Thanks but I just don't get it. Every time I attempt to use a view as
a fact table it gives me an error message saying, of course, a fact
table can't have zero rows.

Any other guidance?

Much obliged.

Pete


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Here's an interesting twist... Analysis Mgr requires that that fact
table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty
cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message
news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
A view can be the fact or dimension source. The view does need to
return
data to populate the cube or dimension, just as with a table. Just
select
the view as you would a table from the list of source objects provided
by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or
views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube
build?
How could one use a view as a fact table if the view shows zero
records?






Reply With Quote
  #7  
Old   
Thomas
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-15-2003 , 03:53 AM



Actually , you just have to pretend that the fact table is not empty.
In the cube editor just set the 'Fact Table Size' property (Advanced
tab) manually to 1 (or anothing other than 0).

Thomas

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Analysis Manager won't allow a cube to be built if the fact table (physical
or view) has no rows. But if you happen to want an empty cube, you can build
it, process it, delete the data, then reprocess.

tom @ the domain below
www.tomchester.net


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309141528.3b829eaa (AT) posting (DOT) google.com...
Hi Tom --

Thanks but I just don't get it. Every time I attempt to use a view as
a fact table it gives me an error message saying, of course, a fact
table can't have zero rows.

Any other guidance?

Much obliged.

Pete


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:<L5p8b.52$M41.30638 (AT) news (DOT) uswest.net>...
Here's an interesting twist... Analysis Mgr requires that that fact
table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty
cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message
news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
A view can be the fact or dimension source. The view does need to
return
data to populate the cube or dimension, just as with a table. Just
select
the view as you would a table from the list of source objects provided
by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or
views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube
build?
How could one use a view as a fact table if the view shows zero
records?




Reply With Quote
  #8  
Old   
Pete Hohenhaus
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-15-2003 , 10:20 AM



Big thanks, Guys!!!

thomasgreuel (AT) hotmail (DOT) com (Thomas) wrote in message news:<7f43db9d.0309150053.6ad20579 (AT) posting (DOT) google.com>...
Quote:
Actually , you just have to pretend that the fact table is not empty.
In the cube editor just set the 'Fact Table Size' property (Advanced
tab) manually to 1 (or anothing other than 0).

Thomas

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Analysis Manager won't allow a cube to be built if the fact table (physical
or view) has no rows. But if you happen to want an empty cube, you can build
it, process it, delete the data, then reprocess.

tom @ the domain below
www.tomchester.net


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309141528.3b829eaa (AT) posting (DOT) google.com...
Hi Tom --

Thanks but I just don't get it. Every time I attempt to use a view as
a fact table it gives me an error message saying, of course, a fact
table can't have zero rows.

Any other guidance?

Much obliged.

Pete


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:<L5p8b.52$M41.30638 (AT) news (DOT) uswest.net>...
Here's an interesting twist... Analysis Mgr requires that that fact
table
(or view) have at least one row. But, you can build cube, delete row (or
change WHERE clause in view), re-process cube. Then you have an empty
cube
which you can use as blank modeling space.

tom @ the domain below
www.tomchester.net


"Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message
news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
A view can be the fact or dimension source. The view does need to
return
data to populate the cube or dimension, just as with a table. Just
select
the view as you would a table from the list of source objects provided
by
the AS wizard.


"Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message
news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com...
Can one, how does one create/build a Cube based on a view or
views???

Folks --

I appreciate any info and assistance. Thanks, in advance.

Can one, how does one, create a Cube based on a view or views in SQL
Server??? If there's nothing in a view, then how would a Cube
build?
How could one use a view as a fact table if the view shows zero
records?




Reply With Quote
  #9  
Old   
dxd
 
Posts: n/a

Default Re: Can one, how does one create/build a Cube based on a view or views??? - 09-16-2003 , 09:30 AM




I believe you'd better to check the underlying table/view is not
empty first and then go ahead to process the cube or partition.
Otherwise you will

face trouble when later you want to incremental processing. See the post
of http://dbforums.com/showthread.php?threadid=584920



Originally posted by Thomas

Quote:
Actually , you just have to pretend that the fact table is not empty.

In the cube editor just set the 'Fact Table Size' property (Advanced

tab) manually to 1 (or anothing other than 0).



Thomas



"

--
Posted via http://dbforums.com


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.