Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Replacement of makewebtask
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

South Africa
1 Posts

Posted - 05/06/2014 :  05:49:23  Show Profile  Reply with Quote
Hi guys,

I need to generate an XML file from an SQL query. In SQL 2005 and SQL 2000 makewebtask stored procedure made this easy to achieve. Is there a similar command or stored procedure in 2008 that I can use to generate an XML file from a query.



Flowing Fount of Yak Knowledge

2780 Posts

Posted - 05/06/2014 :  07:29:03  Show Profile  Reply with Quote
You should look into using SSIS with a script task to generate the html or perhaps an SSRS report with HTML output.
Go to Top of Page

Flowing Fount of Yak Knowledge

4614 Posts

Posted - 05/06/2014 :  11:52:18  Show Profile  Reply with Quote
There is a FOR XML clause:

EDIT: Never mind, I missed that you wanted a file generated.

Edited by - Lamprey on 05/06/2014 11:52:55
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000