N
nyousfi
Hi everyone,
I hope you can help!
I have the following query accesing an SQL Server 2000 Box
SELECT website.websiteID,
website.description,
website.URL,
website.DepartmentID
FROM website
WHERE website.canDisplay = 1
FOR XML AUTO, ELEMENTS
This comes back with
<website>
<websiteID>1</websiteID>
<description>yahoo</description>
<URL>http://www.yahoo.com</URL>
<DepartmentID>Department1</DepartmentID>
</website>
Now, thats the easy bit, any idea how I can save the Data coming back
into an XML file?
i.e. I want to save the data to c:\test.xml
Not sure what to use.
Thanks for the help!
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
I hope you can help!
I have the following query accesing an SQL Server 2000 Box
SELECT website.websiteID,
website.description,
website.URL,
website.DepartmentID
FROM website
WHERE website.canDisplay = 1
FOR XML AUTO, ELEMENTS
This comes back with
<website>
<websiteID>1</websiteID>
<description>yahoo</description>
<URL>http://www.yahoo.com</URL>
<DepartmentID>Department1</DepartmentID>
</website>
Now, thats the easy bit, any idea how I can save the Data coming back
into an XML file?
i.e. I want to save the data to c:\test.xml
Not sure what to use.
Thanks for the help!
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*