Click here to Skip to main content
14,668,470 members
Rate this:
Please Sign up or sign in to vote.
Hi,

I have a question that Is FOR XML PATH keyword supporetd by SQL2000.
If Yes,
i've getting error like "Incorrect syntax near the keyword 'For'".
if No,
kindly tell me with an example how to implement or write query equavalent to FOR XML PATH.
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

FOR XML PATH is not supported by sql 2000
check if this is helpfull
select * from <tablename> FOR XML AUTO, ELEMENTS</tablename>


refer this
http://msdn.microsoft.com/en-us/magazine/cc163782.aspx[^]
http://msdn.microsoft.com/en-us/library/aa226519(v=sql.80).aspx[^]
http://www.mssqltips.com/sqlservertip/1077/returning-xml-result-sets-with-sql-server/[^]
   
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100