XQuery - TechRepublic
Question
August 27, 2008 at 07:50 AM
manmeet_oct

XQuery

by manmeet_oct . Updated 17 years, 10 months ago

I am trying this code in database

————————————–
DECLARE @x XML
SET @x = ‘

SELECT Table1.Column1.value(‘@name’,’VARCHAR(20)’)
FROM @x.nodes(‘/christmaslist/person’) as Table1(Column1)

——————————–

and getting error saying :
Incorrect syntax near ‘.’.

This discussion is locked

All Comments