Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 2nd, 2005, 04:44 PM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default generate XML from SQL server 2000 table

Hi,

I have a scenario where I need to create an XML by fetching data from a table in the SQL Server 2000 database and the resulting XML should adhere to the schema specified in a given XSD document. I need to achieve this using a VB.net program or any other methodology.

Please help me, since this is an urgent requirement.

thanking you

regards
sasidhar

thanks,
Sasidhar

thanks,
Sasidhar
__________________
thanks,
Sasidhar
 
Old August 3rd, 2005, 02:19 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You should look at "FOR XML" in the SQL Server online help at msdn.com. You can creeate a simple XML output by adding this to a standard query. For advanced control you need the "FOR XML EXPLICIT" version. If you can use SQL Server 2005 then yoou have an easier option with "FOR XML PATH".



--

Joe (Microsoft MVP - XML)
 
Old August 3rd, 2005, 11:05 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default

Hi ,

Thank you very much.

But I need to use XSD for generating the xml.

how can I use that too.

regards
sasidhar

thanks,
Sasidhar





Similar Threads
Thread Thread Starter Forum Replies Last Post
generate Random number in MS SQL server 2000 nax111 SQL Server 2000 9 March 29th, 2007 10:14 PM
Connect SQL Server 2000 table with VB6 sanjna000 Access 1 May 2nd, 2006 06:28 AM
generate XML from SQL server 200 table sasidhar79 SQL Server DTS 0 August 2nd, 2005 04:47 PM
Import XML and its attribute into SQL server 2000 khautinh C# 0 April 13th, 2005 09:57 AM
Access and update linked SQL Server 2000 table Lizu Access 9 May 10th, 2004 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.