declare @x xml
set @x = '<Root>
<row id="1"><name>Larry</name><oflw>some text</oflw></row>
<row id = "2"><name>moe</name></row>
<row id = "3"/>
</Root>'
select T.c.query(..) as result from @x.nodes('/Root/row') T(C)
select T.c.query(..) as result from @x.nodes('/Root/row') T(C)
I am getting following error.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ')'.
could any one help me correcting the error. I am new to sql .