SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 import to xml file(script)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nord
Posting Yak Master

122 Posts

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

James K
Flowing Fount of Yak Knowledge

3568 Posts

Posted - 09/11/2013 :  14:37:38  Show Profile  Reply with Quote
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

122 Posts

Posted - 09/11/2013 :  14:57:03  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

3568 Posts

Posted - 09/11/2013 :  15:47:01  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000