Text file import

From: nh (reply_at_thegroup.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 10:42:39 -0000

I have a DTS package which imports thousands of text files into a database.

Because the number of columns varies significantly throughout each file, the
only way I can import them is to add a row of 50 or so commas into the
beginning of each file before importing.

With SQL 7.0 this was no problem as in the DTS package I could set it to
start the import at row 2 of each file. With the 'First Row' option on the
'Options' tab of 'Transform Data Task Properties'.

Since I have upgraded to 2000, whenever I set the first row to 2, I get a
message saying 'Make sure the last row is equal or greater than the first
row'

I don't want to set a 'last row' as it will vary...I just want it to start
at row 2 and keep going until it gets to the end of the file...

Is there a way around this?

Thanks

Nick



Relevant Pages

  • DTS fails to import data when called from VB6
    ... I have created a DTS package that imports an Access ... database file into a SQL 2000 database. ... package via VB6 and it imports all the data successfully ...
    (microsoft.public.sqlserver.dts)
  • Re: dts packages take a long time to run
    ... > You can use profiler to monitor what is going on - looking ... >>I'm running a DTS package that imports data from various Excel ... When all rows have been imported from a particular worksheet ...
    (microsoft.public.sqlserver.connect)
  • Re: dts packages take a long time to run
    ... You can use profiler to monitor what is going on - looking ... >I'm running a DTS package that imports data from various Excel spreadsheets ... When all rows have been imported from a particular worksheet ...
    (microsoft.public.sqlserver.connect)
  • Re: adVarWChar slower than adVarChar
    ... file to be imported for each of our customers. ... You can't think of a way to use a single DTS package for all ... Please reply to the newsgroup. ...
    (microsoft.public.data.ado)
  • Re: TransferSpreadsheet method
    ... Your code specifies that range "A1:K1" of the spreadsheet is to be imported, i.e. the first row only. ... Of course if I use the import wizard it imports correctly. ...
    (microsoft.public.access.externaldata)