Viewing 6 posts - 1 through 6 (of 6 total)
Hello all,
Please see the filter I have provided on the SFARBE column in the WITH block. This avoids including blank strings.
SELECT SFARBE,RREFERENZ FROM OPENXML (@idoc, 'FARBE' ,1)
WITH ( SFARBE...
March 4, 2013 at 2:47 pm
Mike, this should do the trick. OPENXML method first followed by the .nodes() method.
declare @xml xml
set @xml = '<Products>
<Product ID="123" Name="Male Bicycle" Amount="1">
...
March 3, 2010 at 9:13 am
@mike-2: provide me an example of your XML and what you want, and I can write it up for you in both OPENXML and .nodes methods.
-Graham
February 12, 2010 at 9:23 am
Using OPENXML vs. .nodes is a trade off situation, each with good use cases.
You have to start by asking yourself what you want: performance or resource constraints. If you...
February 12, 2010 at 9:20 am
Gary,
I would think XML indexes are only useful across multiple rows, like when you want to find rows that contain certain data in the XML or when the XML column...
December 30, 2009 at 5:54 pm
How about using OPENXML?
DECLARE @idoc int, @myXml xml
SET @myXml = '<Author xmlns:xsi="..." xmlns:xsd="..." version="1">
<Benefits>
<Benefit Name="HospitalizationLimit" Value="500000"/>
<Benefit Name="MedicalConsultationLimit" Value="12000"/>
...
December 30, 2009 at 10:14 am
Viewing 6 posts - 1 through 6 (of 6 total)