Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DTS FSO

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-08-06 : 09:39:54
Hassan writes "Hi
I am trying to get txt file from a folder and append the content of txt file to my table.
Here are Examples of the txt file in my folder

PPS0000000054_SOD.txt
PPS0000000055_SOD.txt
PPS0000000057_IMA.txt
PPS0000000058_IMA.txt

As you can see they are having a sequential number ( …..54…. ….5_…) I want to get all SOD.txt in one table and all IMA.txt in another table.

I know I have to use DTS and write a VB code to loop through these files and append them to my table. I am not sure how to use FSO and do not know how to start writing the code. Any help would be appreciated

Hassan"

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2002-08-06 : 09:54:49
Lots of documentation on FSO here http://msdn.microsoft.com/scripting

Damian
Go to Top of Page
   

- Advertisement -