sql server xml
i purchase xml database;
using mssql 2000
this code gives me an error (Incorrect syntax near 'XML'.)
select region.region as name, region.population , region.area,
(Select Country.country as name, Country.currency,
(Select state.state as name, state.nickname
from state where state.country_id = Country.country_id FOR XML AUTO)
from Country where Country.region_id = region.region_id FOR XML AUTO)
from region FOR XML AUTO, ROOT, elements
|