![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Just wondering if anyone can suggest any solution to a problem I am having. I currently have a DTS package which is reading in a CSV file on a daily basis, the only trouble is that sometimes this CSV file can be of size 0. Common sense tells you that DTS should notice this and simply read in 0 rows. However, DTS fails the step and subsequently, the package. Is there any way to prevent it failing the step due to a file of zero size? If not, is there any way to force the step to succeed once it has failed through an ActiveX script or something similar? Thanks for your time. |
#3
| |||
| |||
|
|
Use this - How can I check if a file exists? (http://www.sqldts.com/default.aspx?211) with this- Working with files and the FileSystemObject - See File Size section. (http://www.sqldts.com/default.aspx?292) -- Darren Green http://www.sqldts.com http://www.sqlis.com "Lee" <Lee (AT) discussions (DOT) microsoft.com> wrote in message news:8F10B930-6479-48A5-8A4B-136221F445A4 (AT) microsoft (DOT) com... Just wondering if anyone can suggest any solution to a problem I am having. I currently have a DTS package which is reading in a CSV file on a daily basis, the only trouble is that sometimes this CSV file can be of size 0. Common sense tells you that DTS should notice this and simply read in 0 rows. However, DTS fails the step and subsequently, the package. Is there any way to prevent it failing the step due to a file of zero size? If not, is there any way to force the step to succeed once it has failed through an ActiveX script or something similar? Thanks for your time. |
![]() |
| Thread Tools | |
| Display Modes | |
| |