leo (AT) junquera (DOT) com wrote:
Quote:
Is there a way to pull a scalar value from a cube? Is this common?
Can I do it using .NET? Does anybody have a sample query that I can
test against the Adventure Works example.
Thanks, |
SELECT FROM [Cube Name] WHERE ([Measures].DefaultMember, ... )
will give you a scalar value.
Yes, you can do it from .NET
How are you connecting to the cube? In your case I'd think the MSOLAP.2
OLEDB provider will be the simplest option.
You can use it with an OLEDB Command ExecuteScalar, just like you would
with a SQL database
-- a --
PS: No, it's not unheard of to want a single value from a cube ... as
long as that's not all that the cube's for