Groups | Blog | Home
all groups > sql server data warehouse > may 2005 >

sql server data warehouse : Check File size before importing


deheinz1
5/9/2005 1:57:33 PM
I have a DTS procedure that runs 4 times a day. It has worked well until
now. It is reading infromation from a text file. Today the text file was
empty and DTS failed giving me this error; "The volume for a file has been
externally altered so that the opened file is no longer valid.". I believe
this is happening because the file size is 0 K bytes (This file is
constantly overwriitten). Is there a way before importing a text file to
Paul Smith
5/10/2005 12:00:00 AM
Use FSO (File System Object) to check the size first in an ActiveX script,
you can find an exampl on sqldts.com

[quoted text, click to view]

JT
5/13/2005 5:02:39 PM
Even confirming that the file size is > 0 may not indicate reliably that the
source data transfer has completed. I have a similar situation where files
are being FTP'd from the mainframe and can take 1/2 or more to complete
(assuming they do complete). My solution was to ask the data processing
staff to download the file with an extention of .TMP and then rename it to
..DAT after the download is complete.

[quoted text, click to view]

AddThis Social Bookmark Button