XML methods support in Advanced SQL
83
Views
4
Comments
Out of scope
Aggregates & Queries

When you choose to convert a table to XML and attempt to use XML methods in Service Studio, the application will issue a warning message. However, the SQL statement used is entirely valid and there is no reason for the warning to be displayed. It is unclear whether this is a bug or if it is a matter that could be improved upon by the SQL interpreter.


Unexpected SQL

Unexpected '.' in SQL statement of SQL1. Recheck the SQL to make sure it is valid.


Example SQL:

SELECT (    

SELECT num 

FROM (        

SELECT 1 num      

UNION      

SELECT 2    

UNION        

SELECT 3       

UNION        

SELECT 4         

) t    FOR XML PATH(''), TYPE).value('.', 'NVARCHAR(MAX)')

Hi Damian,

Just to be clear, is it only a warning message or an error message. If it is a warning message does the SQL statement perform as expected?

Either way this seems to be more a topic to report via the feedback button, or maybe even a support case, as it looks to be a bug in the SQL validation.

Best would be to use the Feedback button in Service Studio, and create support case, you issue will get faster attention then posting it here as an idea.

Regards,

Daniel

Changed the category to
Aggregates & Queries

Hi @Daniel Kuhlmann 

The query works as expected; only the warning is shown.

I will submit feedback in Service Studio; this idea can be closed; thank you for the advice.

Changed the status to
Out of scope

Submitted as feedback in Service Studio by Damian.