Microsoft KB Archive/288330

= FIX: FTP Task in DTS Deletes File from the Destination Folder After the Package Completes Execution =

Article ID: 288330

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q288330



BUG #: 351440 (SHILOH_bugs)

BUG #: 352500 (SHILOH_bugs)



SYMPTOMS
When you use an FTP task in Data Transformation Services (DTS) to move files from an FTP server to a destination folder, the last file in the list is deleted from the destination, after the package completes execution. Th file deletion happens when the package is executed from the GUI. If the package is run from the command line using DTSRUN, the last file is partially copied over.

The file is deleted if it is a relatively large file. However, if the last file in the list is a very small file, for example about 2 kilobytes (KB), all the files are moved over successfully.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix
NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.

The English version of this fix should have the following file attributes or later:   File name

s80272i.exe NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000. Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.



MORE INFORMATION
When you use an FTP task in DTS, the only way you can add files is by using the GUI. The files are listed in alphabetical order and are moved over in the alphabetical order sequence.

For example, suppose you have four files that you want to move over from the FTP server. The four files are named:
 * a.txt - 100 MB
 * b.txt - 10 MB
 * c.txt - 2 KB
 * d.txt - 3 MB

In the FTP task when you add the files from the FTP server, the files are added in this order:
 * a.txt
 * b.txt
 * c.txt
 * d.txt

When you run this package, the package completes execution successfully. But, you can see the last file &quot;d.txt&quot; being deleted from the destination folder. If you rename the &quot;d.txt&quot; file to &quot;ab.txt&quot;, and you then you re-add the four files in the FTP task, the last file in the list is &quot;c.txt&quot; (2 KB). Now, if you run the package, all four files are moved over.

If you are moving only one file, and if the size of the file is relatively large, like 3 MB, the file is deleted from the destination folder as soon as the package completes execution.

Additional query words: DTS FTP Delete Destination

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB288330

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.