Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have data that needs to extract from my SQL database and format into XML and then upload to a web services. Any ideas how I can I do this thru a SSIS or SQL? If there are website examples please provide me the link.


Thanks,
Posted

Here's the query to export your sql table data to XML

SELECT Col1, Col2, Col3
FROM <table_name>
FOR XML AUTO,TYPE, ELEMENTS ,ROOT('<rootname>')

More Info - Refer this one - Export data from SQL Server as XML[^]

Please refer the below link to work with Webservices

http://www.c-sharpcorner.com/1/133/web-services-in-C-Sharp.aspx[^]
 
Share this answer
 
Thanks Rajan. But the websites does not show me how to upload the XML data to a web services URL.
Any advice?

Thanks,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900