General Question

creativejuices's avatar

What Functions,SP,tools are available within SQL for Creating XML?

Asked by creativejuices (490points) April 7th, 2009

Afternoon all,
My ? is as follows. Does anybody have some sample code on How to use MSSQL SP to Create from Query XML formatted data and Save each SP execution to a Specific Folder Location?
MY SP would Be Executed VIA an ADO connection to a DB that would Select * from Production_Declaration where DEC_STATUS > 0 then For Each @i i would need to Fill the XML Elements from My Schema(Of Which i cant figure out how to Load,Use Dynamically as a TABLE) and Save the result to a designated Network(Intra-Net folder) for my ETL Software package to Pull from On Event and Transfer to my Corp SAP System via RFC“Remote Function CALL”

Observing members: 0 Composing members: 0

2 Answers

hex's avatar

FOR XML is your friend. This link may help you out a little, not exactly on topic, but worth a look if for nothing else but the SP

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther