Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Pete_N
Posting Yak Master
181 Posts |
Posted - 2013-10-04 : 12:30:50
|
I know how to delete from an xml file using Set @SQL = 'UPDATE #Xml SET XMLText.modify(''delete /BACSDocument/Data/ARUDD/Advice/OriginatingAccountRecords/OriginatingAccountRecord/ReturnedDebitItem[@ref[not(contains(.,''''' + @mLicence + '''''))]]'')' exec sp_executesql @SQLIf I have am xml file containing 4 records, is it possible to delete two of those records if they do not appear in a tableie if in my table 2 records, fields; Sortcode, accountnumber, how can I delete the records from the xml file that the sortcode value and accountnumber values do not match, and end up with an xml file with just the two records in it? |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|
|
|