![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS package that loads text files. One of the file created by mainframe (Security.dat) sometimes has 0 bytes in it. While executing DTS Package, I need to check if the Security.dat file is 0 bytes. If it is, I need to leave the Security (Table that the data goes into)table alone. If it is not 0 bytes (meaning some data is in it), I need to delete the current data in the Security table and load the new data from Security.dat file. Can anyone send me a script (or any other way) to do this ? Thanks for any help. |
#3
| |||
| |||
|
|
I have a DTS package that loads text files. One of the file created by mainframe (Security.dat) sometimes has 0 bytes in it. While executing DTS Package, I need to check if the Security.dat file is 0 bytes. If it is, I need to leave the Security (Table that the data goes into)table alone. If it is not 0 bytes (meaning some data is in it), I need to delete the current data in the Security table and load the new data from Security.dat file. Can anyone send me a script (or any other way) to do this ? Thanks for any help. |
#4
| |||
| |||
|
|
Is there a way you could send me an example ? Thanks again.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |