Hi All,
My DTS package reads data from a csv file and populates it into the database.
Now, if the csv file is empty, I get an error.
What I need is, to check whether the file not contain any records.
I know if import txt file, I can use AX Script as
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(FileName)
If f.Size = 0 Then
But how to check the size of empty CSV. It seem its size is 1KB, but I am not sure.
Any idea.
Thanks advance
My DTS package reads data from a csv file and populates it into the database.
Now, if the csv file is empty, I get an error.
What I need is, to check whether the file not contain any records.
I know if import txt file, I can use AX Script as
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(FileName)
If f.Size = 0 Then
But how to check the size of empty CSV. It seem its size is 1KB, but I am not sure.
Any idea.
Thanks advance