![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I use to import data from multiple source files but those files are in the same folder Now I've got same files (ie. with the same name) but in different folders And I want to import all of this in the same table I've got 2 global variables : - gv_FileLocation - gv_FileFullName So for exemple: gv_FileLocation = D:\ftp\Paris And another folder => D:\ftp\London How can i switch folder in the same DTS package ? Rgds Flora |
#3
| |||
| |||
|
|
You'll have to use the Activex Task and loop though the folders and change the name of the location / file. Check out this tutorial.. http://www.sqldts.com/default.aspx?246 It shows you how to do the looping and the setting of the file names. (or folder names in your case) Bill "Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote in message news:3C787544-FA04-4CA2-8E7F-D109CCA281D3 (AT) microsoft (DOT) com... Hi, I use to import data from multiple source files but those files are in the same folder Now I've got same files (ie. with the same name) but in different folders And I want to import all of this in the same table I've got 2 global variables : - gv_FileLocation - gv_FileFullName So for exemple: gv_FileLocation = D:\ftp\Paris And another folder => D:\ftp\London How can i switch folder in the same DTS package ? Rgds Flora |
#4
| |||
| |||
|
|
I have used something like this and it works great. Rick "Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message news:O3nZI8KjFHA.3148 (AT) TK2MSFTNGP09 (DOT) phx.gbl... You'll have to use the Activex Task and loop though the folders and change the name of the location / file. Check out this tutorial.. http://www.sqldts.com/default.aspx?246 It shows you how to do the looping and the setting of the file names. (or folder names in your case) Bill "Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote in message news:3C787544-FA04-4CA2-8E7F-D109CCA281D3 (AT) microsoft (DOT) com... Hi, I use to import data from multiple source files but those files are in the same folder Now I've got same files (ie. with the same name) but in different folders And I want to import all of this in the same table I've got 2 global variables : - gv_FileLocation - gv_FileFullName So for exemple: gv_FileLocation = D:\ftp\Paris And another folder => D:\ftp\London How can i switch folder in the same DTS package ? Rgds Flora |
![]() |
| Thread Tools | |
| Display Modes | |
| |