Viewing 3 posts - 1 through 3 (of 3 total)
If you are just selecting data from an sql server table and want to output it in XML format, try this:
SELECT
txtname
,txtdob
,nomname
,nomadd
FROM myTable as root
FOR XML AUTO,ELEMENTS
November 25, 2004 at 5:20 am
#531519
Agree.
Always use the SQL92 syntax. Outer joins weren't standardized before this and can return unusual results. -down to the fact that the WHERE clause is not associative. See BOL.
October 16, 2003 at 2:28 am
#478400
Are there any NULL ID's in #temp3
If so, you won't get any results.
If this is the case, either add a clause AND ID IS NOT NULL when selecting from...
October 16, 2003 at 2:24 am
#478399