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 2005 Forums
 Transact-SQL (2005)
 exporting xml to file

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-11-26 : 06:08:55
i am running a procedure that creates an xml structure
how can i export it directly to a file?

thnaks
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-26 : 07:00:45
Use FOR XML RAW/EXPLICIT/AUTO to create xml in procedure.
For exporting to file see below

http://msdn.microsoft.com/en-us/library/ms191184.aspx
Go to Top of Page

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-11-26 : 11:27:17
i found this article
[url]http://www.sqldbatips.com/showarticle.asp?ID=23[/url]

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page
   

- Advertisement -