Unspecified error - Please help! -
03-16-2009
, 02:44 PM
Hi!
I'm trying to execute a dts in sql server 2000, in my dts I'm openning
a text file with Scripting.FileSystemObject, this is my function :
function ReadFile(pathfilename)
Const ForReading = 1, ForWriting = 2
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(pathfilename, ForReading)
ReadFile = f.ReadAll
end function
the file is not too big, but when is executing this line: "ReadFile
= f.ReadAll" the dts gives me the "Unspecified error", any idea? It
happened to me log time ago, I remember that I registered again one
dll to fix it but I don't remember witch one.
Thank you. |