![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
All, i have a folder which i need to import each files seperatley and then run some administrative tasks / reports on each table. my question is how can i use DTS import each file into thier own table? any links or advise would be greatful. Simon |
#3
| |||
| |||
|
|
What is a file? A text file or a DB2 file (aka Table)? You can adapt either of these by referring to the following articles. Looping, Importing and Archiving (http://www.sqldts.com/Default.aspx?246) How to loop through a global variable Rowset (http://www.sqldts.com/Default.aspx?298) -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:%23c%23CKzcrDHA.1740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... All, i have a folder which i need to import each files seperatley and then run some administrative tasks / reports on each table. my question is how can i use DTS import each file into thier own table? any links or advise would be greatful. Simon |
#4
| |||
| |||
|
|
Allan, thank you for the links, i have tried to setup a test on this, so that i can also understand what it is doing, but when i run the package i get the following error on the DefinetheGVs ActiveX script. Eror Code: 0 Error Source= Microsoft VBScript runtime error Error Description: ActiveX xomponent can't create object: 'scripting.FileSystemObject' Error on line 26 this is from using the Looping, Importing and Archiving link from below. i have looked this through on MSDN and the support site and all i found was to do with the global variables, but the script is written in the way that the resolution says. Many thanks Simon "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:uPFL0KdrDHA.2488 (AT) TK2MSFTNGP12 (DOT) phx.gbl... What is a file? A text file or a DB2 file (aka Table)? You can adapt either of these by referring to the following articles. Looping, Importing and Archiving (http://www.sqldts.com/Default.aspx?246) How to loop through a global variable Rowset (http://www.sqldts.com/Default.aspx?298) -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:%23c%23CKzcrDHA.1740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... All, i have a folder which i need to import each files seperatley and then run some administrative tasks / reports on each table. my question is how can i use DTS import each file into thier own table? any links or advise would be greatful. Simon |
#5
| |||
| |||
|
|
Somebody else had this problem in a previous thread unrelated to any article. What OS are you running ? Try installing the latest version http://www.microsoft.com/downloads/d...DisplayLang=en -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:eXZYRYerDHA.2584 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Allan, thank you for the links, i have tried to setup a test on this, so that i can also understand what it is doing, but when i run the package i get the following error on the DefinetheGVs ActiveX script. Eror Code: 0 Error Source= Microsoft VBScript runtime error Error Description: ActiveX xomponent can't create object: 'scripting.FileSystemObject' Error on line 26 this is from using the Looping, Importing and Archiving link from below. i have looked this through on MSDN and the support site and all i found was to do with the global variables, but the script is written in the way that the resolution says. Many thanks Simon "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:uPFL0KdrDHA.2488 (AT) TK2MSFTNGP12 (DOT) phx.gbl... What is a file? A text file or a DB2 file (aka Table)? You can adapt either of these by referring to the following articles. Looping, Importing and Archiving (http://www.sqldts.com/Default.aspx?246) How to loop through a global variable Rowset (http://www.sqldts.com/Default.aspx?298) -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:%23c%23CKzcrDHA.1740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... All, i have a folder which i need to import each files seperatley and then run some administrative tasks / reports on each table. my question is how can i use DTS import each file into thier own table? any links or advise would be greatful. Simon |
#6
| |||
| |||
|
|
Allan, thanks that seems to have solved that problem. now i get that there is a bad directory location, but i see there is no reference to a directory location. so my question is how do i assign a value to that global variable? many thanks Simon "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:uKhGP0erDHA.1948 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Somebody else had this problem in a previous thread unrelated to any article. What OS are you running ? Try installing the latest version http://www.microsoft.com/downloads/d...DisplayLang=en -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:eXZYRYerDHA.2584 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Allan, thank you for the links, i have tried to setup a test on this, so that i can also understand what it is doing, but when i run the package i get the following error on the DefinetheGVs ActiveX script. Eror Code: 0 Error Source= Microsoft VBScript runtime error Error Description: ActiveX xomponent can't create object: 'scripting.FileSystemObject' Error on line 26 this is from using the Looping, Importing and Archiving link from below. i have looked this through on MSDN and the support site and all i found was to do with the global variables, but the script is written in the way that the resolution says. Many thanks Simon "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:uPFL0KdrDHA.2488 (AT) TK2MSFTNGP12 (DOT) phx.gbl... What is a file? A text file or a DB2 file (aka Table)? You can adapt either of these by referring to the following articles. Looping, Importing and Archiving (http://www.sqldts.com/Default.aspx?246) How to loop through a global variable Rowset (http://www.sqldts.com/Default.aspx?298) -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "simon whale" <simon (AT) nospam (DOT) ukdatait.co.uk> wrote in message news:%23c%23CKzcrDHA.1740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... All, i have a folder which i need to import each files seperatley and then run some administrative tasks / reports on each table. my question is how can i use DTS import each file into thier own table? any links or advise would be greatful. Simon |
![]() |
| Thread Tools | |
| Display Modes | |
| |