Search This Site
Older Posts
- February 2016
- June 2015
- October 2014
- June 2014
- March 2014
- July 2013
- June 2013
- May 2013
- January 2013
- December 2012
- November 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- February 2010
- October 2009
- September 2009
- March 2009
- February 2009
- January 2009
- December 2008
Categories
Category Archives: XML
Update a SQL table’s XML value to insert a node
Sometimes a snippet of example code is all that’s needed: update MyTable set XmlColumn.modify(‘ insert <Description>This is a description</Description> as last into (/xpath/to/parent)[1] ‘) where SomeValue = ‘whatever’
Posted in CodeMinder, Programming, SQL, XML
Leave a comment
Update a SQL table’s XML value to remove nodes
CodeMinder: to remind myself of stuff that I usually have to look up each time I do it. To delete all PersonAlternativeName nodes from XmlColumn of the People table: with xmlnamespaces( ‘http://mydomain.com/person/extension/0.1’ as px) update People set XmlColumn.modify(‘delete //px:PersonAlternateName’)
Posted in CodeMinder, Programming, SQL, XML
Leave a comment
Select multiple XML nodes out of each row in a SQL table
CodeMinder: to remind myself of stuff that I usually have to look up each time I do it. If a People table has a column named XML, and the XML column may specify multiple PersonAlternativeName entities, then to get all … Continue reading
Posted in CodeMinder, SQL, XML
Leave a comment