Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

file copy one server to another server in asp

Posted on 2009-04-05
1
Medium Priority
?
513 Views
Last Modified: 2012-05-06
Hi i have application on asp
i want to copy file from webserver to dbserver
xxx-oo is my db server


any help would be very much appreciated
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFile "D:\abc\japan\xxx\"&rsTemp.fields("filename")&"","\\xxx-oo\img\"
 
set fs = nothing

Open in new window

0
Comment
Question by:saloj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
NicksonKoh earned 2000 total points
ID: 24074995
Hi,

The code is good. I believe the problem lies with the security. How to overcome this depends on the IIS authentication you use.

The below should explain clearly.
http://databases.aspfaq.com/database/why-can-t-i-access-a-database-or-text-file-on-another-server.html
http://support.microsoft.com/default.aspx/kb/197964
http://support.microsoft.com/default.aspx/kb/308150

cheers,
Nickson
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question