Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Report Designer - SQL Statement Instead of XML

$
0
0
I have been tasked with finding out why a report isn't giving back the intended results. I have a copy of the *.rdl file, so I open the report in Report Builder 3.0 and look at the dataset used for the report. I right mouse click on the dataset and select "Properties", which opens up the DataSet Properties screen. When I go into the "query" section, the query is a giant XML file (small sample posted below). Unfortunately, this doesn't really help me understand what is happening to find out why the report is supposedly not working. I really want to find the SQL Statement that is executed so I can copy it into SSMS and play with the query to find out why some data is being overlooked (I have a feeling the user doesn't understand what the report returns and it works as designed, but without knowing the query, I am not sure how to prove / disprove my feeling). Is there anyway to convert this XML into an actual SQL Statement? Or is there some option I might be missing in Report Designer to show the actual SQL Statement? <SemanticQuery xmlns="http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qd="http://schemas.microsoft.com/sqlserver/2004/11/semanticquerydesign" xmlns:rb="http://schemas.microsoft.com/sqlserver/2004/11/reportbuilder"> <Hierarchies> <Hierarchy> <BaseEntity> <!--Reporting Client Contact--> <EntityID>G8859e987-c659-4061-963f-8c4f0f316aee</EntityID> </BaseEntity>

Viewing all articles
Browse latest Browse all 2791

Trending Articles