如何在XMLA for SSAS中使用SQL?
我在XMLA for SSAS中使用SQL时遇到问题。它是使用SOAP协议与SSAS服务器交互的Python库所必需的。访问数据有两种方式:MDX(多维模式)和SQL(表格模式)。我有一个简单的任务从1个表中选择数据。所以SQL应该最适合,但它有太多的限制:并没有组、havings、limits,WHERE子句也被限制为“=”运算符。所以它不能用于现实世界中的大型表 代码示例:如何在XMLA for SSAS中使用SQL?,sql,soap,ssas,mdx,xmla,Sql,Soap,Ssas,Mdx,Xmla,我在XMLA for SSAS中使用SQL时遇到问题。它是使用SOAP协议与SSAS服务器交互的Python库所必需的。访问数据有两种方式:MDX(多维模式)和SQL(表格模式)。我有一个简单的任务从1个表中选择数据。所以SQL应该最适合,但它有太多的限制:并没有组、havings、limits,WHERE子句也被限制为“=”运算符。所以它不能用于现实世界中的大型表 代码示例: <soap-env:Envelope xmlns:soap-env="http://schemas.x
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:schemas-microsoft-com:xml-analysis">
<soap-env:Body>
<Execute>
<Command>
<Statement>
SELECT [Customer Id] as [Customer.Customer Id] ,[Title] as [Customer.Title]
FROM [Adventure Works Internet Sales Model].[$Customer]
WHERE ([Customer Id]="11000" OR [Customer Id]="11001" OR [Customer Id]="11002" OR [Customer Id]="11003" OR [Customer Id]="11004")
</Statement>
</Command>
<Properties>
<PropertyList>
<Format>Tabular</Format>
<AxisFormat>TupleFormat</AxisFormat>
<MaximumRows>2</MaximumRows>
</PropertyList>
</Properties>
</Execute>
</soap-env:Body>
</soap-env:Envelope>
但我现在还不能达到这个目标。有人能帮我吗
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ExecuteResponse xmlns="urn:schemas-microsoft-com:xml-analysis">
<return>
<root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msxmla="http://schemas.microsoft.com/analysisservices/2003/xmla">
<xsd:schema targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:sql="urn:schemas-microsoft-com:xml-sql" elementFormDefault="qualified">
<xsd:element name="root">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="row" type="row" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="uuid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}" />
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="xmlDocument">
<xsd:sequence>
<xsd:any />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="row">
<xsd:sequence>
<xsd:element sql:field="Customer.Customer Id" name="Customer.Customer_x0020_Id" type="xsd:string" minOccurs="0" />
<xsd:element sql:field="Customer.Title" name="Customer.Title" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<row>
<Customer.Customer_x0020_Id>11000</Customer.Customer_x0020_Id>
</row>
<row>
<Customer.Customer_x0020_Id>11001</Customer.Customer_x0020_Id>
</row>
<row>
<Customer.Customer_x0020_Id>11002</Customer.Customer_x0020_Id>
</row>
<row>
<Customer.Customer_x0020_Id>11003</Customer.Customer_x0020_Id>
</row>
<row>
<Customer.Customer_x0020_Id>11004</Customer.Customer_x0020_Id>
</row>
</root>
</return>
</ExecuteResponse>
select {[Customer].members} on columns
from [Adventure Works Internet Sales Model]