![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am embarking on a project using DTS and could use some advice on how to go about it. I need to import multiple text files to sql tables from a directory. The text file names will vary based on a combination of an association number and a club number. A text file name will look like CADJaaaccc where aaa = assoc number and ccc = club number and the "prefix", "CADJ" remains constant. My routine should detect the existence of the text file perform the import 1 to 1 to an SQL table then archive the original in a different directory. The text files are created on an ir-regular schedule about every two weeks. These subsequent SQL tables will then be queried to display data on the web via asp. I've gone through many tutorials that show how to import multiple text files to one sql table. I am getting a grip on creating and scheduling a single package but could use some advice on expanding the concept to a multi-table, variable table name scenerio. Any help is appreciatted! Thanks in advanced, Mick Force Web Developer www.handinet.com |
#3
| |||
| |||
|
|
See http://www.nigelrivett.net/ImportTextFiles.html That's for bulk insert but if you really want to usr dts you can do a similar thing setting a global variable using dtsrun then using a dynamic properties task to set it as the source file. "Mickfo" wrote: Hello, I am embarking on a project using DTS and could use some advice on how to go about it. I need to import multiple text files to sql tables from a directory. The text file names will vary based on a combination of an association number and a club number. A text file name will look like CADJaaaccc where aaa = assoc number and ccc = club number and the "prefix", "CADJ" remains constant. My routine should detect the existence of the text file perform the import 1 to 1 to an SQL table then archive the original in a different directory. The text files are created on an ir-regular schedule about every two weeks. These subsequent SQL tables will then be queried to display data on the web via asp. I've gone through many tutorials that show how to import multiple text files to one sql table. I am getting a grip on creating and scheduling a single package but could use some advice on expanding the concept to a multi-table, variable table name scenerio. Any help is appreciatted! Thanks in advanced, Mick Force Web Developer www.handinet.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |