Discussion:
DTS copy file and clear first line
(too old to reply)
DrDude
2008-11-21 11:27:13 UTC
Permalink
Hi,

I am very new to DTS and am currently still working with SQL Server 2000.

I have two problems:

1. I need to copy a file with a daily changing name from one server to
another. The file is date stamped. However, the first part of the file is
constant ('THSNUREF - constant part) and then ('2008-11-21-07-38-38.csv' -
changing).
I have been looking around for a couple of days and got some hints on how to
do it but I cannot make it work with my experince.

After the file transfer I need to:

2. delete the first row in the file as it contains data about when the file
was created. The second row contains the column headers and the rest is the
data.

Basically I am trying to copy the file, clean it up and then import it into
the database from where I stage it und update the live table. I can manually
process the file and copy it, rename it to a constant name and strip the
first row but that takes a long time and I have to do it for several
different files. And because the file has more than 65k rows I have to do
everything via access.

I would really appreciate any help from anyone.

Thanks
DrDude via SQLMonster.com
2008-12-01 16:33:28 UTC
Permalink
Any takers?
Post by DrDude
Hi,
I am very new to DTS and am currently still working with SQL Server 2000.
1. I need to copy a file with a daily changing name from one server to
another. The file is date stamped. However, the first part of the file is
constant ('THSNUREF - constant part) and then ('2008-11-21-07-38-38.csv' -
changing).
I have been looking around for a couple of days and got some hints on how to
do it but I cannot make it work with my experince.
2. delete the first row in the file as it contains data about when the file
was created. The second row contains the column headers and the rest is the
data.
Basically I am trying to copy the file, clean it up and then import it into
the database from where I stage it und update the live table. I can manually
process the file and copy it, rename it to a constant name and strip the
first row but that takes a long time and I have to do it for several
different files. And because the file has more than 65k rows I have to do
everything via access.
I would really appreciate any help from anyone.
Thanks
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-dts/200812/1
Loading...