Getting Started with Adobe After Effects - Part 6: Motion Blur
Ask
Ask questions, discuss or help others by answering
Related Posts · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Top Categories · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Read xml through a Stored Procedure

Oct 29 2011 12:00AM by teej21012   

I have a question that is very similar to this guys, http://social.msdn.microsoft.com/Forums/en-SG/sqlxml/thread/d8730c0f-4a0c-43bc-885c-5474f49174f4. I have XML in the very same format as his, with the ns0: before every node level. I have a table called @ProcessingXML with columns XMLData as a data type XML and TransactionSetNo as a data type varchar(20) with the XML file in the XMLData column. I want to be able to do this:

WITH XMLNAMESPACES
(
DEFAULT 'http://schemas.microsoft.com/BizTalk/EDI/X12/2006'
)

UPDATE
@ProcessingXML
SET
TransactionSetNo = XMLData.value('(//BHT_BeginningofHierarchicalTransaction/@BHT03_OriginatorApplicationTransactionIdentifier)[1]', 'VARCHAR(20)')

Currently, doing this doesn't pull any of the values from that particular element in the node. Any help would be greatly appreciated.

Submitted under: Microsoft SQL Server · XQUERY ·  ·  · 


teej21012
1554 · 0% · 12

1 Replies

  • @teej,

    can you show a sample XML document?

    commented on Oct 29 2011 4:33AM
    Jacob Sebastian
    1 · 100% · 32002

Your Reply


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]