Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    91

    Unanswered: SQL Server 2005 - How to easily import and then append XML file into a table

    Hi Everyone,

    I am looking for a simple way to import and then append XML files read from a file directory into a SQL Server table. I haven't done anything like this before so I was looking for some guidance on the simpleast way possible using very little code if any at all.

    I noticed data source types SQLXMLOLEDB.4.0 and SQLXMLOLEDB available in the import export wizard but haven't used these data source types before. Can these datasource types be utilized through the import export wizard to create an SSIS package that will import XML files?

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    you can us OPENXML or SSIS I am sure but why are you storing whole files in the database? why not just store their locations. I got in a disagreement with a lead software developer about something like this he wanted to do a few years ago. Well he got his way and we made it to production, but the result was a database that grew at a rate of 10GB a week.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Nov 2005
    Posts
    91
    Thanks Thrasymachus. I'll do some research on the two options that you mentioned and monitor the growth of my DB and Log File in my testing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •