0
我想查詢維度數據(.Net),並以表格形式檢索信息。 一個例子是,具有尺寸Customer
,具有屬性Name
,Address
,Street
等SQL Server 2005多維數據集維度查詢.Net
我想有Name
,Address
,Street
爲列,並以行它們之間的組合。
我發現這個查詢...
WITH MEMBER [Measures].[Address]
AS '[Customer].[Customer].Properties("Address")'
SELECT NON EMPTY {
[Measures].[Address]
} ON COLUMNS , NON EMPTY [Customer].[Customer].ALLMEMBERS ON ROWS
FROM [Adventure Works]
WHERE [Customer Geography].[Australia]
但我不事先既沒有屬性也沒有層次,我只有維度。
有沒有辦法做到這一點?
該查詢的結果是te memberas作爲列,但我需要屬性作爲列和它們的值作爲行。 – aivaldi
屬性在結果中。如果你e。 G。使用Management Studio運行MDX查詢,然後雙擊客戶頭部單元格,您將看到屬性。你如何從.NET訪問結果?你在使用ExecuteCellSet()嗎? – FrankPl