dbTalk Databases Forums  

DTS Excel transform reading beyond last row

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Excel transform reading beyond last row in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stainless
 
Posts: n/a

Default DTS Excel transform reading beyond last row - 08-18-2010 , 03:52 AM






SQL Server 2000

I have a DTS Package that is reading an Excel file and, using a
Transform, populating a SQL table with simple Copy transformations. It
is failing as it reads beyond the last populated row in the Excel
worksheet and thus tries to populate one of the table fields with the
null value it finds there.

The Excel file itself is a more recent format than the latest type
available in DTS (Microsoft Excel 97-2000 in DTS) and I have defined
the default value of 0 in both the First Row and Last Row value of the
Transform Data Task Properties.

I know the actual data is ok as, if I alter these to 1 and 22401 (the
actual number), the package works and the data is loaded.

The issue is that the file will change from week to week and so I
cannot give exact values for the number of rows. The process has to
read all rows available.

What can I do to ensure the process stops at the last row populated?

Cheers

Mark

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.