|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, February 25, 2010 10:16 AM
Points: 6,
Visits: 30
|
|
Hello All... I have a set of XML files which I need to import into database on Regular basis(after validating some business logic).
I want this to be a scheduled Job in database
Hence started creating an SSIS package to import the XML data into Database table.
I tried the SSIS package with a single XML and it worked very well
I am using Data Flow section with XML Source and Sql Server Destination tools init.
I am just selecting an XML in the XML Source and genenerating an XSD and doing the import process by connect XML source to Sql Server Destination
How can I make this process generic, so that works for all the list of XML files stored in a perticluar location on my server.
Please help me with the steps
Thanku in advance
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 4:38 AM
Points: 1,078,
Visits: 536
|
|
Fairly sure you will be able to adapt the method for importing multiple files shown here http://www.sqlis.com/post/Looping-over-files-with-the-Foreach-Loop.aspx provided that the definition of the xml files are the same and that they are all saved into the same folder.
Basically a for each container with you dataflow inside it, that loop through a folder and get the file name which is then passed to the xml source component
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, November 20, 2012 5:13 AM
Points: 141,
Visits: 67
|
|
Hi There,
The process for loading .csv files or .txt files is pretty much clear. But the process to load xml files is a bit confusing since I can't use Flat File Connection manager to get the data from .xml files and to set the Connection String proprty. Please give me the detailed process to load the .xml files into db using For Each Loop container in SSIS. Please reply if I am not elaborative about the problem.
Thanks, Srinivas
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, September 11, 2012 1:09 PM
Points: 7,
Visits: 175
|
|
Hey Sultan,
Did you figure out how to XML files? I am having the same requirement now. Even I am confused as to how to map the variable in FELC as there is no conn str unlike flatfile or Eccel.
Please share your experience.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:22 AM
Points: 63,
Visits: 224
|
|
| I'm having the same issue, anybody.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 15, 2012 9:30 PM
Points: 1,
Visits: 4
|
|
| It seems that importing multiple XML files is a common problem. I need help as well. Anyone out there that can help. Please.....
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 15, 2012 7:33 PM
Points: 9,
Visits: 0
|
|
|
|
|