So I’m trying to convert a web service that was an Oracle application to T-SQL. The fun part is I only have the web service code and no database code at all. I see there is an input parameter that contains <ROWSET><ROW NUM=\"1\"><TRANSACTIONID>123456</TRANSACTIONID></ROW></ROWSET>
I’m looking through the docs for T-SQL and I can’t seem to find anything helpful on what I can do with this xml. From what I can understand it’s used to insert values into a table since the elements will not be similar in every call.
Any help would be appreciated.
Assuming this
XMLis a parameter to yourT-SQLstored proc or function, you can use theOPENXMLutility to work with this type of data. Here‘s a complete example (reposted here for clarity):Result: