Groups | Blog | Home
all groups > sql server programming > december 2004 >

sql server programming : Retrieving Data in XML Format


Anith Sen
12/20/2004 10:30:27 AM
Did you look at the details about FOR XML clause in SQL Server Books Online?

--
Anith

Bob Barrows [MVP]
12/20/2004 11:32:07 AM
[quoted text, click to view]

Look up "for XML" in Books Online (BOL)

Bob Barrows

PS. This is purely a programming question - nothing to do with .server. In
the future, you should pick one newsgroup to post to. We'll tell you if you
chose the wrong one.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Bob Barrows [MVP]
12/20/2004 12:45:27 PM
You will need to do this in your client tool. I suggest you post to a
newsgroup that supports whatever client application you are using.

Bob Barrows

[quoted text, click to view]

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Leila
12/20/2004 7:55:11 PM
Hi,
I use nested loop with inner joins to retrieve organization's chart from
EmployeeID-ReportsTo columns.
Our client uses XML and I must send the chart in XML format. How can I
perform this?
Any help would be greatly appreciated.
Leila

Leila
12/20/2004 8:32:58 PM
Thanks Anith,
But I couldn't use FOR XML for my problem. When I query the sub-employees of
a particular employee, I must keep that in XML format. Then each
sub-employee may have sub-employees itself that should be inserted beneath
the related element.
Maybe I'm using wrong algorithm?
Please help me..
Thanks in advance..



[quoted text, click to view]

AddThis Social Bookmark Button