![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i'm designing a dts that imports data to sql from hundreds of different excel files, is there a way to automate the process of creating each excel connection & data task. please advise. |
#3
| |||
| |||
|
|
If the files are all the same structure, just a different filter of the source data for example, then use on task and a loop in the package. Some loop examples- How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) How to export all tables in a database (http://www.sqldts.com/default.aspx?299) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) How can I change the filename for an Access Connection? (Same for Excel Conn) (http://www.sqldts.com/default.aspx?201) -- Darren Green http://www.sqldts.com "bt" <bt (AT) discussions (DOT) microsoft.com> wrote in message news:B5B1946D-9036-4768-86AE-F95FDA5DA047 (AT) microsoft (DOT) com... i'm designing a dts that imports data to sql from hundreds of different excel files, is there a way to automate the process of creating each excel connection & data task. please advise. |
#4
| |||
| |||
|
|
Hi Darren Great examples - however I cannot get the looping, importing one to work. Changed the global parameteres to directories on my machine and put a text file here but when executing it says the directories are bad ? --Michael V. "Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> skrev i en meddelelse news:%23ewRjH4eEHA.1764 (AT) TK2MSFTNGP10 (DOT) phx.gbl... If the files are all the same structure, just a different filter of the source data for example, then use on task and a loop in the package. Some loop examples- How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) How to export all tables in a database (http://www.sqldts.com/default.aspx?299) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) How can I change the filename for an Access Connection? (Same for Excel Conn) (http://www.sqldts.com/default.aspx?201) -- Darren Green http://www.sqldts.com "bt" <bt (AT) discussions (DOT) microsoft.com> wrote in message news:B5B1946D-9036-4768-86AE-F95FDA5DA047 (AT) microsoft (DOT) com... i'm designing a dts that imports data to sql from hundreds of different excel files, is there a way to automate the process of creating each excel connection & data task. please advise. |
#5
| |||
| |||
|
|
Check the folders then, are they correct for the machine where the package is executing. Sounds like they are not. Remember DTS packages execute locally, they are not client/server based like the rest of SQL Server. Darren In message <ujnR1EHgEHA.644 (AT) tk2msftngp13 (DOT) phx.gbl>, Michael Vardinghus michaelvardinghus (AT) notexisting (DOT) com> writes Hi Darren Great examples - however I cannot get the looping, importing one to work. Changed the global parameteres to directories on my machine and put a text file here but when executing it says the directories are bad ? --Michael V. "Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> skrev i en meddelelse news:%23ewRjH4eEHA.1764 (AT) TK2MSFTNGP10 (DOT) phx.gbl... If the files are all the same structure, just a different filter of the source data for example, then use on task and a loop in the package. Some loop examples- How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) How to export all tables in a database (http://www.sqldts.com/default.aspx?299) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) How can I change the filename for an Access Connection? (Same for Excel Conn) (http://www.sqldts.com/default.aspx?201) -- Darren Green http://www.sqldts.com "bt" <bt (AT) discussions (DOT) microsoft.com> wrote in message news:B5B1946D-9036-4768-86AE-F95FDA5DA047 (AT) microsoft (DOT) com... i'm designing a dts that imports data to sql from hundreds of different excel files, is there a way to automate the process of creating each excel connection & data task. please advise. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#6
| |||
| |||
|
|
Check the folders then, are they correct for the machine where the package is executing. Sounds like they are not. Remember DTS packages execute locally, they are not client/server based like the rest of SQL Server. Darren In message <ujnR1EHgEHA.644 (AT) tk2msftngp13 (DOT) phx.gbl>, Michael Vardinghus michaelvardinghus (AT) notexisting (DOT) com> writes Hi Darren Great examples - however I cannot get the looping, importing one to work. Changed the global parameteres to directories on my machine and put a text file here but when executing it says the directories are bad ? --Michael V. "Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> skrev i en meddelelse news:%23ewRjH4eEHA.1764 (AT) TK2MSFTNGP10 (DOT) phx.gbl... If the files are all the same structure, just a different filter of the source data for example, then use on task and a loop in the package. Some loop examples- How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) How to export all tables in a database (http://www.sqldts.com/default.aspx?299) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) How can I change the filename for an Access Connection? (Same for Excel Conn) (http://www.sqldts.com/default.aspx?201) -- Darren Green http://www.sqldts.com "bt" <bt (AT) discussions (DOT) microsoft.com> wrote in message news:B5B1946D-9036-4768-86AE-F95FDA5DA047 (AT) microsoft (DOT) com... i'm designing a dts that imports data to sql from hundreds of different excel files, is there a way to automate the process of creating each excel connection & data task. please advise. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
![]() |
| Thread Tools | |
| Display Modes | |
| |