Subject:XSD to DDL (MS-SQL/2005) Author:Neal Walters Date:26 Mar 2008 05:18 PM
I have 2008 XML Enterprise Suite. Is there a tool to take a hierarchical XSD and generate DDL (Create table and columns for each major element, and ideally foreign keys between interelated elements).
Targeting to Microsoft SQL 2005 database.
Subject:XSD to DDL (MS-SQL/2005) Author:(Deleted User) Date:27 Mar 2008 12:39 PM
Hi Neal,
Stylus Studio doesn't provide such a functionality; you can try writing an XSLT to transform the declarations into CREATE TABLE statements, or explore the functionality of SQL Server 2005 to load directly an XSD (see http://blogs.msdn.com/denisruc/archive/2006/04/18/578671.aspx as an example).
Subject:XSD to DDL (MS-SQL/2005) Author:Stylus User Date:24 Apr 2008 04:52 PM
That is unfortunate, this feature would be greatly appreciated. Combined, MapForce (maps DB<->XML, DB<->DB and XML<->XML) and XMLSpy (generates DDL from schemas) from Altova contain the database integration we're looking for in Stylus Studio. It would be great to have both in one tool, Stylus Studio.
Subject:XSD to DDL (MS-SQL/2005) Author:Minollo I. Date:24 Apr 2008 05:30 PM
I think you are mixing the concept of XSD to/from DDL with the ability to work with RDBMS data sources. Stylus Studio's XQuery mapper lets you create mappings that deal with XML documents, RDBMS data sources, Web services or even EDI files, CSV files and more.
Subject:XSD to DDL (MS-SQL/2005) Author:Stylus User Date:28 Apr 2008 12:48 PM
Yes, they are interdependent. We develop custom applications and receive an xsd from a third party. The database needs to be constructed to support the incoming XML. The database is the future target of the mappings. When the schema changes, database updates occur to reflect the change in schema. Generating the DDL would save a lot of work during creation and updates.