Questions tagged [sql-openxml]

The tag has no usage guidance.

sql-openxml
Filter by
Sorted by
Tagged with
-1 votes
1 answer
39 views

Query XML document in SQL Server

I am looking for a SQL Server query that will allow me to retrieve the ReferencesValues in a tabular result with a ParentKey field that refers to the 'key' field in the tag '* Reference'. xml : <...
Djam75's user avatar
  • 31
0 votes
1 answer
64 views

Using OPENXML for extracting data

i have xml text, and want extract data DECLARE @d_txt VARCHAR(max) SET @d_txt = ' <DI_List> <SDI> <a>6559864</a> <DI> <Id>3036780478</Id> ...
AZubov's user avatar
  • 3
1 vote
1 answer
167 views

Getting the desired view/result of XML in SQL Server (Bulk Insert XML into table)

I want to bulk-insert XML data into SQL Server tables. What have I achieved so far? I have successfully loaded the XML file into SQL Server and fetched XML data. What's the problem Now? The retrieved ...
Khaleel Org's user avatar
0 votes
1 answer
113 views

SQL Server reduce recurring XML nodes to JSON array

I have some XML in which every entry can contain some recurring elements. I'm trying to query it with OpenXML function and I want to reduce those elements to JSON arrays. My SQL looks like this: ...
mike_grinin's user avatar
1 vote
3 answers
205 views

How to access the next sibling of an xml tag in openxml sql

So i have an XML file which looks like below declare @xml xml= '<ENVELOPE> <BILLFIXED> <BILLDATE>29-Jun-2019</BILLDATE> <BILLREF>123</BILLREF> ...
rajsx's user avatar
  • 61
0 votes
1 answer
421 views

Problem converting xsi:nil="true" to NUll by OpenXML

I am sending data from a C# Windows forms application as XML to SQL The problem is that NULL values ​​are converted and sent as xsi:nil="true". And when read by OpenXML it encounters an ...
Hamid's user avatar
  • 5