Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Generate XSD using SSIS Expand / Collapse
Author
Message
Posted Thursday, September 16, 2010 4:33 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 22, 2015 2:40 PM
Points: 55, Visits: 821
Greetings

In BIDS 2005 is it possible to generate an xsd file given an xml file?

Thanks
Post #987807
Posted Friday, September 17, 2010 10:42 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 3:56 PM
Points: 2,033, Visits: 9,692
I belive so. (I don't have access to BIDS right now to check)

Create an XML Connection Manager and point it to your XML file. On the form you should see a button for generating the XSD.




Alvin Ramard
Memphis PASS Chapter

All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help
Post #988399
Posted Saturday, March 14, 2015 3:09 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Sunday, May 3, 2015 2:41 PM
Points: 166, Visits: 577
I there anyway to automate the creation of the XSD file. Such that when the package runs every time it will create the XSD from the XML.




A clever person solves a problem. A wise person avoids it. ~ Einstein
select cast (0x5365616E204465596F756E67 as varchar(128))
Post #1668588
Posted Monday, March 23, 2015 10:25 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 10:52 AM
Points: 1,061, Visits: 2,791
To my knowledge, there's no way to generate an XSD on the fly at runtime. At design time, yes - you can do this using the XML source to generate an XSD based on the specified XML file.

A larger question would be: do you really want to do this on the fly? SSIS is very picky about metadata, and if a dynamically generated XSD file materially changes the metadata structure of the data flow, you'll get an error when the package executes.




Tim Mitchell, SQL Server MVP
Independent Business Intelligence Consultant
www.TimMitchell.net
@Tim_Mitchell

Post #1670743
Posted Monday, March 23, 2015 10:46 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 22, 2015 2:40 PM
Points: 55, Visits: 821
It is possible and I have done it since my original post but it is not worth it, too complicated and not worth the effort. It would require some serious automation and involved some .net within the SSIS package.
Post #1670756
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse