Spudhead
01-06-2004, 01:38 PM
Hi,
I'm having all sorts of problems with this. There is a data file that gets automatically uploaded to the database server box - lets call him \\BARRY. The file is imported by means of a DTS package into SQL Server sitting on that box.
However, I also need to *get at* that file from the webserver machine, let's say \\KEITH.
So, from an ASP script running on \\KEITH, can I do:
set oFile=oFSO.getFile("\\BARRY\E:\datafolder\datafile.txt")
Should that work? Will getFile work across network paths?
Assuming it should, then if it doesn't work (which, the more astute of you may have correctly concluded, it doesn't) am I right in assuming that it's either because:
1. I'm a muppet who hasn't defined the path correctly.
2. KEITH can't actually see BARRY.
3. KEITH can see BARRY, but ASP scripts running on KEITH don't have permissions to go poking at files on BARRY.
=============
Secondly, assuming I've been smacking myself about the face with this all chuffing morning, is it possible to write a SQL stored proc that will sit in the database on BARRY - which we know CAN see this ****ing file cos there's a DTS on there that imports it - and that will return the file's last modified date if it exists, and something small and non-hazardous (like an empty string, or the word "Figaro") if it doesn't? What would the gist of a SQL script like that look like?
Thanks for all suggestions and messages of support. Barry says hello.
I'm having all sorts of problems with this. There is a data file that gets automatically uploaded to the database server box - lets call him \\BARRY. The file is imported by means of a DTS package into SQL Server sitting on that box.
However, I also need to *get at* that file from the webserver machine, let's say \\KEITH.
So, from an ASP script running on \\KEITH, can I do:
set oFile=oFSO.getFile("\\BARRY\E:\datafolder\datafile.txt")
Should that work? Will getFile work across network paths?
Assuming it should, then if it doesn't work (which, the more astute of you may have correctly concluded, it doesn't) am I right in assuming that it's either because:
1. I'm a muppet who hasn't defined the path correctly.
2. KEITH can't actually see BARRY.
3. KEITH can see BARRY, but ASP scripts running on KEITH don't have permissions to go poking at files on BARRY.
=============
Secondly, assuming I've been smacking myself about the face with this all chuffing morning, is it possible to write a SQL stored proc that will sit in the database on BARRY - which we know CAN see this ****ing file cos there's a DTS on there that imports it - and that will return the file's last modified date if it exists, and something small and non-hazardous (like an empty string, or the word "Figaro") if it doesn't? What would the gist of a SQL script like that look like?
Thanks for all suggestions and messages of support. Barry says hello.