Chance1234
IS-IT--Management
Code:
<recurrence><rule>
<firstDayOfWeek>su</firstDayOfWeek>
<repeat><monthly monthFrequency='2'
day='3' /></repeat>
<repeatInstances>5</repeatInstances>
</rule></recurrence>
Code:
<recurrence><rule>
<firstDayOfWeek>su</firstDayOfWeek>
<repeat><daily dayFrequency='2'
/></repeat>
<windowEnd>2003-09-
20T09:00:00Z</windowEnd>
</rule></recurrence>
Code:
<recurrence><rule>
<firstDayOfWeek>su</firstDayOfWeek>
<repeat><yearly yearFrequency='1'
month='9' day='20' /></repeat>
<windowEnd>2007-09-
20T07:00:00Z</windowEnd>
</rule></recurrence>
The above are examples of the xml data that im working with,
I am ok with pulling back the values
Code:
declare @xml xml
set @xml = '<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><daily dayFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>'
declare @firstday varchar(10)
select @xml.query('//recurrence/rule/firstDayOfWeek').value('.','varchar(10)')
However, I am struggling to pull out the data between the repeat node.
I ideally would like to bring it back so I know whether its Daily / Weekly / Monthly / Yearly
Then bring back the interval information.
Ive been searchign through Bol for ages and cant see how i can do this , any help appreciated.
Chance,
F, G + 1MSTG