如何从RDL文件中的语义查询获取物理SQL查询? [英] How to fetch Physical SQL Query from a Semantic Query in RDL file?

查看:372
本文介绍了如何从RDL文件中的语义查询获取物理SQL查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从语义查询获取物理SQL查询中RDL文件?
我们有以下一些步骤来继续前进,同时提取语义查询从RDL

How to fetch Physical SQL Query from a Semantic Query in RDL file?
We have some following steps to go ahead while extracting the Semantic Query from RDL

  1. 从RDL文件中提取语义查询
  2. 对语义模型XSD验证
  3. 解析和Transfrom语义查询到一个结构,我们就可以生成物理SQL
  4. 执行转换过程中得到物理查询

我们完成了第1步中,我们能够从RDL提取语义查询并将其存储在XML

We accomplished step 1, We were able to Extract the semantic query from RDL and store it in XML

问题1:

对于第2步,验证对XSD。 XSD路径的http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/SemanticModeling.xsd而我们的XML是从RDL提取。上面提到的语义模型XSD有一些进口的命名空间DataSourceView.XSD。任何人都可以提出如何以及在哪里可以得到DataSourceView.XSD?

For step 2, Validating against the XSD. XSD path is http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/SemanticModeling.xsd and our XML is extracted from RDL. The Semantic Model XSD mentioned above has some import namespace to DataSourceView.XSD. Can anyone suggest how and where can I get DataSourceView.XSD?

问题2:

有关解析和转换的语义查询,我们需要建立在C#中的XML解析器,或是否有任何的API,它可以执行此。

For Parse and Transform the Semantic Query, do we need to create an XML parser in C# or does any API which can perform this.

我们无法对运行报告模型的RDL文件,因为我们的要求是拿到物理SQL不是数据集。

We can't Run the RDL file against Reporting model, because our requirement is to get the Physical SQL not the Dataset.

推荐答案

我还没有找到一种方法来提取SQL或转换语义查询到SQL直接从包含报表模型参考的RDL文件。

I haven't found a way to extract the SQL or convert the semantic query to SQL directly from an RDL file that contains a report model reference.

然而,在 SQL是在报告服务可用的日志文件中生成报告后

这篇关于如何从RDL文件中的语义查询获取物理SQL查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆