I want to generate a XML file using a specific query. The main issue is that when I generate the XML, the output would look like this: The main pro ...
I want to generate a XML file using a specific query. The main issue is that when I generate the XML, the output would look like this: The main pro ...
I saw this xml example data in a 2013 SQL Server question on Stack Overflow : <Fruits> <Apple /> <Banana /> <Orange /> ...
I am trying to make a wrapper parameterised stored procedure to execute another stored procedure which takes XML as its input (for use with SSRS). Th ...
I want to reproduce this output as an scalable query from the datebase to XML using FOR XML This is the example of a XML containing an instance Gear o ...
I want to reproduce this output using FOR XML: I got this far with my query: and got this output: My tables are: And version is: Microsoft ...
I have seen this question Replace value in XML using SQL and again I am thankful, however, I have a XML file with all the trigger creation scripts but ...
I have data that looks like after writing the recursive CTE: I want to write a T-SQL query in SQL Server to return the data like this: I have tr ...
I have a SQL query that combines multiple results from a table into a single row, ordered list result set. TableA Col1 ...
I wrote a query to get the data from table in XML format, but if column doesn't have any data then its not returning the data in the XML output. Pleas ...
Short version Using SQL Server FOR XML ROOT('Customers'), how to I add attributes to that root node? Long Version When using FOR XML in SQL Serve ...
I have below table like: SQL fiddle I am able to get this output via XML, but I am not sure how I can get below output properly for larger number of ...
I have a temporary table that has a column 'Header' that contains XML, that looks something like this: I am then selecting that temp table column i ...
I am running into an issue where I am having to do some custom encoding on some XML output that results from a SQL Server query. The Query to gene ...
I'm using FOR XML to create an XML file out of SQL queries. I want to have elements based around common values for a particular column, in this case " ...
I have the a stored procedure to generate an XML document based on the UBL-TR-2.1 standard. This is the query where the XML data is generated: A sa ...
I have created a script which takes data from a table in SQL and generates an XML output. The parent, child and sub-child tags are all the same which ...
I have the following statement to get both dates into @xmlData Then I will insert it into the table: When executing my select logic, I'm getting ...
We are cleaning our database of accounts which share email addresses. Some email addresses are used on as many as 20 accounts, but we are moving to a ...
I am a xml string as below. I want to use sql server for xml xpath to generate this xml string. I have trouble to get id="IP1" and id="IP2". Would you ...
I am attempting to integrate an application running on a SQL 2008R2 database, with a new application that runs on a SQL Server 2017 database. This ...