0

Requirement: Run the below XMLA script on a particular node of SQL server 2012 and store the output data in a file or an SQL table

<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
    <RestrictionList>
        <ObjectExpansion>ExpandObject</ObjectExpansion>
    </RestrictionList>
</Restrictions>
<Properties>
    <PropertyList>
    </PropertyList>
</Properties>

I'm not finding any component in SSIS that could run the XMLA script and store the results. let me know is it possible in any other ways.

4

1 回答 1

0

就像@sebTHU 说的你可以使用 SSAS DMV:

Select [CUBE_NAME], LAST_DATA_UPDATE from $system.MDSCHEMA_CUBES

但是,如果要列出所有数据库及其最后处理日期,请安装ASSP,然后运行以下命令:

CALL ASSP.DiscoverXmlMetadataFull("\Databases\Database", "" ,"<ObjectExpansion>ExpandObject</ObjectExpansion>")

您可以在 SSIS 中使用链接服务器或 .NET 源组件。

于 2015-08-25T12:32:17.743 回答