I have a rather large query (25 tags across a dozen tables; ~1500 lines) that needs to be formatted into XML using FOR XML EXPLICIT. Unfortunately, th ...
I have a rather large query (25 tags across a dozen tables; ~1500 lines) that needs to be formatted into XML using FOR XML EXPLICIT. Unfortunately, th ...
We had a SQL 2005 server running for XML EXPLICIT queries quite happily with no performance issues. The machine (a Windows 2003 server) has unfortunat ...
I need to store the text of all of the stored procedures in a database into an XML data type. When I use, FOR XML PATH, the text within in the stored ...
I have been given an XML document that I want to generate via a SQL script, I've not done something like this and haven't been able to find any exampl ...
We have converted a database from SQL Server 2000 to SQL Server 2014. We require XML output and use T-SQL's for xml explicit option to return XML. Th ...
I'm generating an XML document using FOR XML EXPLICIT: declare @MyTable table (value xml); insert into @MyTable values ('<foo bar="data1">con ...
i am trying to generate below XML Structure using for XML Explicit I am able to generate I am unable to generate the above Structure. The cod ...
I required output like below. But when I execute my code, I am not getting the product properly grouped under each parent (it should be like under "US ...
I have the following query which produces XML output: The result that I expected is: I need the data to be enclosed in a cdata tag. So I used FO ...
I am trying to craft XML to return to BizTalk from a SQL Server stored procedure that will make it easy for me to debatch the files based on an Attrib ...
I'm facing some problems with xml explicit in sql server where it doesn't output xml according to the relationship I specified in sql query. The query ...
I want to assign the result of a SELECT FOR XML EXPLICIT statement to a XML Variable such as When i execute this query am getting the following err ...
ANSWERED THIS AFTER ALL - OUTLINED BELOW IN CASE IT WILL HELP SOME OTHER UNFORTUNATE SOUL THAT HAS TO USE XML EXPLICIT :) I have the following code w ...
I have a Microsoft SQL Server query that builds up a temp table and then outputs XML using the "for XML Explicit" syntax like this: This is all con ...
This query works fine I would like to assign it to a variable. This works fine without the union: As soon as I introduce the union it doesn't wo ...
I am using SQL Server 2008 and I'm trying to produce a custom xml using EXPLICIT mode with FOR XML. I have the one to many relation having following ...
im trying to generate xml in the following format: My query is as follows: my query does not produce the record tag completely, currently it is ...
I have these tables: TIPO GRUPO PRODUTO with this query: That returns me this: Or, without the FOR XML, this: With the "tipo" and " ...
I have inherited a 1000-line stored procedure which produces XML by using FOR XML EXPLICIT. My problem is that it works most of the time. In some scen ...