convert CSV file to XML file format based on XSD file using SSIS (SQL Server 2008R2)

  • Hi All,

    In my current project we have requirement where i have to convert CSV file to XML file format based on XSD file using SSIS & T-sql .

    Could you please let me know the best way of converting CSV to XML file format...

    Thanks for your help

    Regards

    Krish

  • Why does it have to be SSIS?

    in t-sql we can use the "FOR XML" option which converts the whole table for you.

    SELECT * FROM sys.tables FOR XML AUTO

  • Hi,

    Thanks for your response ,I know we can do it in T-SQL, however my output needs to be XML.

    So I dont see any need to populate CSV data to a table before converting into XML.

    Is there any better way instead of storing into table and then converting into XML.

    Thanks

    Krishna

  • Well I gave you the output you wanted in XML.

    I don't know any other way of doing this so I'll step aside.

    Good luck with this.

  • P.S.

    How big is the csv file?

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply