April 28, 2008 at 5:28 am
HI All..
I need help in writing stored procedure for SQL server 2005..
i have a table where fields are Employee_code,Claim_date,Business_Unit,expense,details,emp_id..
i need to make one xml file for each employee having multiple claims ..such as one employee having same Emp_code,same Claim_date and Business_Unit can make several claims in a day..
so i need xm in form of for a particular day..for a particular employee...(which will be defined as header in xml...) list claims for a particular employee.
so format will be
Employee_code,Claim_date,Business_Unit,
and this should be in one xml ..then again process starts for second employee...
actually i need to send this xml to SAP RFC using Biztalk server 2006..
Plz give suggestions on this problem..
April 28, 2008 at 8:00 am
Take a look at "For XML" in Books Online. That should give you what you need.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
April 29, 2008 at 5:00 am
Hi,
Could any one explain me how to fetch row by row with out using cursor
April 29, 2008 at 7:30 am
Shalini, please start a separate thread for that.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply