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
 Transact-SQL (2008)
 Replacement of makewebtask
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kwazi
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.

Thanks.

Regards,
Kwazi

gbritton
Flowing Fount of Yak Knowledge

1182 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

Lamprey
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:
http://technet.microsoft.com/en-us/library/ms178107.aspx


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  
 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.06 seconds. Powered By: Snitz Forums 2000