StackOverflow Questions for Tag: select-for-xml

Paul White
Paul White

Reputation: 374

Generating self-closing XML tags for lists in SQL Server

Score: 0

Views: 483

Answers: 4

Read More
Stefan Steiger
Stefan Steiger

Reputation: 82306

How to put an attribute on the root element, and only the root element, in FOR XML PATH?

Score: 1

Views: 1373

Answers: 3

Read More
PatsonLeaner
PatsonLeaner

Reputation: 1250

SQL SERVER Select Distinct ID is not working

Score: 0

Views: 432

Answers: 2

Read More
Christian4145
Christian4145

Reputation: 543

TSQL: Return elements of a group as XML

Score: 0

Views: 46

Answers: 1

Read More
Kesiya Abraham
Kesiya Abraham

Reputation: 853

SQL query for Dynamic nodes in XML

Score: 2

Views: 1438

Answers: 1

Read More
cyberspy
cyberspy

Reputation: 1087

Cross apply function returning XML needs a column name

Score: 0

Views: 410

Answers: 1

Read More
Tymur Lysenko
Tymur Lysenko

Reputation: 103

For xml path returns null instead of nothing

Score: 3

Views: 2034

Answers: 2

Read More
Joe
Joe

Reputation: 1055

SQL Server 2014 - FOR XML AUTO avoid automatic node nesting

Score: 0

Views: 121

Answers: 2

Read More
Pavel Foltyn
Pavel Foltyn

Reputation: 409

SQL Server SELECT FOR XML How to get two elements at the same level

Score: 3

Views: 5490

Answers: 2

Read More
FMFF
FMFF

Reputation: 1718

Using FOR XML PATH to output Multiple Sibling Elements

Score: 1

Views: 4988

Answers: 1

Read More
John Adams
John Adams

Reputation: 4833

Subquery in FROM clause is causing unwanted ELEMENT in FOR XML AUTO output

Score: 0

Views: 96

Answers: 2

Read More
Neil Allen
Neil Allen

Reputation: 13

Different values returned by SQL Server 2000 and SQL Server 2014 when returning results using for xml explicit

Score: 1

Views: 100

Answers: 2

Read More
v s
v s

Reputation: 559

How to get rid of special characters after generating sql statements using for xml

Score: -1

Views: 80

Answers: 1

Read More
jpierson
jpierson

Reputation: 17384

How to output raw xml within an XML projection in SQL Server without introducing an extra xml root element

Score: 2

Views: 119

Answers: 2

Read More
devloper
devloper

Reputation: 101

Grouping XML Elements in FOR XML Clause

Score: 0

Views: 133

Answers: 1

Read More
Thomas Byrne
Thomas Byrne

Reputation: 137

FOR XML SQL Server - Variable Element name in output XML

Score: 4

Views: 2429

Answers: 2

Read More
allan
allan

Reputation: 979

Select for xml statement to produce excel sheetData format

Score: 1

Views: 2663

Answers: 1

Read More
TravelDuck
TravelDuck

Reputation: 29

Specific XML layout needed

Score: 1

Views: 38

Answers: 1

Read More
Ishpal
Ishpal

Reputation: 93

tsql for XML format the values as elements

Score: 0

Views: 280

Answers: 1

Read More
Brienne Schroth
Brienne Schroth

Reputation: 2457

How can I convert a row with many columns to a table with two columns (fieldname and value) and many rows?

Score: 3

Views: 1917

Answers: 3

Read More
PreviousPage 1Next