Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Multiple Excel Spreadsheets into an SQL table

Status
Not open for further replies.

budgetboy

Programmer
Dec 5, 2007
1
GB
Dear helpers,

I have an SQL table called DEPOT STOCK and I want to set up a DTS which can import multiple spreadsheets into this one table. I dont want to set up seperate connections and data tasks for each spreadsheet. The spreadsheets are in a folder called Result in \\Vpszzz\data\Apps\Chas Data\Depot Stock Valuation\France. The SQL table and excel spreadsheets will have the same column headings. I want it so that when I add new spreadsheets into the folder it will be very easy to change the dts/routine to bring the new spreadsheet(s) in.

I believe I will probably have to use some sort of data pump and global variables. I would be very grateful if someone had the code for this whole process or knew a very suitable site.

The spreadsheets are called:

Marseille.xls
Nice.xls
Northwest.xls

Thanks
 
Is there some reason why you wouldn't want more than one connection in your DTS package? You can run the import of each .xls file in parellel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top