Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Generating XML in Sql Server 2000

Author  Topic 

arsamyvel
Starting Member

1 Post

Posted - 2009-08-24 : 07:11:32
Hi,

I need to generate the below XML format in Sql server 2000
<PatientDetails>
<ID>1</ID>
<SeqNo>1</SeqNo>
<PersonName>
<LastName>cccc</LastName>
</FirstName>fffff</FirstName>
<MiddleName>M</MiddleName>
</PersonName>
<BirthDate>
<Year>2009</Year>
<Month>8</Month>
<Day>24</Day>
</BirthDate>
.
.
.
</PatientDetails>


Similarly need to store the above output into a local varaiable and append with another output

I tried using XML Auto,Elements,but no luck.

Can any one suggest me the steps to overcome this Issue.


Thanks
Samyvel

jayakumar_sqlteam
Starting Member

2 Posts

Posted - 2009-08-31 : 03:10:51
Hello if you are not find a solution your problem

Have a at below link

http://www.eggheadcafe.com/articles/20030804.asp

Kumar

Try and fail, but don't fail to try.
Go to Top of Page
   

- Advertisement -