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 2008 Forums
 SSIS and Import/Export (2008)
 import to xml file(script)

Author  Topic 

nord
Posting Yak Master

126 Posts

Posted - 2013-09-11 : 14:15:07
Hi,
I would like to insert data from sql to xml file...
Its possible without 3rd party?
Thanks

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-09-11 : 14:37:38
Yes, it is possible. You can create the XML using T-SQL XML methods - see documentation and examples here: http://technet.microsoft.com/en-us/library/ms178107.aspx These examples are very basic - there is a lot more to it which you will find if you Bing for it.

Then use any of the usual methods for exporting the data to a file (such as SSIS, bcp etc.) to export the data.
Go to Top of Page

nord
Posting Yak Master

126 Posts

Posted - 2013-09-11 : 14:57:03
Thanks.
ok,I have database oracle,I did connection string in ssis,how I can convert table or Oracle script to xml
Thanks
Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-09-11 : 15:47:01
quote:
Originally posted by nord

Thanks.
ok,I have database oracle,I did connection string in ssis,how I can convert table or Oracle script to xml
Thanks

I have to plead ignorance on Oracle. This forum is for Microsoft SQL Server, so there may be few if any who are well-versed in Oracle. You might get better and faster responses at an Oracle forum or a generalized database forum such as dbforums.com
Go to Top of Page
   

- Advertisement -