Are you saying that you recieve a file with 3 fields but you oly want 2 of
them?
If yes then you have a few ways of doing it but my way would be to import
the whole file to a working table and do TSQL updates from there.
--
--
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Mike Oleksak" <moleksak (AT) msa (DOT) com> wrote
Quote:
I am trying to import a text file in DTS. The file has 3
different record types each are a different length. The
table I am trying to import into has only 2 fields. The
first field is varchar(3) for the record type and the
second field is varchar(300). The last record is 80 char
and does end with a {CR}{LF}. I did read the bugs
regarding dropping the last record if it does not have the
row delimiter. Any thoughts. |