dbTalk Databases Forums  

DTS & FTP task

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS & FTP task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nevlis
 
Posts: n/a

Default DTS & FTP task - 01-11-2005 , 11:26 AM






SQL Server2000 SP3


I have been trying to create a DTS that uses an FTP task

The DTS executes fine from the DTS designer window

However, when I try and run the DTS from ASP....

On the development server where the database is on the
same system as the web-server all works fine my file gets transfered
to the correct dir

However, when I try to call the DTS from ASP on our production web-server
with the dev machine as the database server the

DTS says successfull but the file is not being transferred.



Does anyone know if there is something speciall I have to do when
calling the DTS when the Web-server and database system are on seperate
systems...


I am leanning towards a security or access issue between the DTS and
the target dir where I want to transfer the file...

on the target dir I set permisson to EVERYONE with full control




What I am trying to accomplish is

1. user goes to web-site browses for file
2. file gets transfered to web-server
3. use DTS to FTP file to database server
4. use file in DTS to bulk insert into database table


Thanks for the help
nevlis




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 12:31 PM






It will be, as you have correctly identified, an issue with security. I am
inclined to start here.

http://support.microsoft.com/?kbid=252987

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"nevlis" <silven (AT) removesilven (DOT) canada.com> wrote

Quote:
SQL Server2000 SP3


I have been trying to create a DTS that uses an FTP task

The DTS executes fine from the DTS designer window

However, when I try and run the DTS from ASP....

On the development server where the database is on the
same system as the web-server all works fine my file gets transfered
to the correct dir

However, when I try to call the DTS from ASP on our production web-server
with the dev machine as the database server the

DTS says successfull but the file is not being transferred.



Does anyone know if there is something speciall I have to do when
calling the DTS when the Web-server and database system are on seperate
systems...


I am leanning towards a security or access issue between the DTS and
the target dir where I want to transfer the file...

on the target dir I set permisson to EVERYONE with full control




What I am trying to accomplish is

1. user goes to web-site browses for file
2. file gets transfered to web-server
3. use DTS to FTP file to database server
4. use file in DTS to bulk insert into database table


Thanks for the help
nevlis






Reply With Quote
  #3  
Old   
nevlis
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 01:04 PM



Whould you have any idea of which users should have what permissions
when trying to run DTS with FTP from ASP


Thanks for the help

nevlis

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in news:OvhE0sA#EHA.1264
@TK2MSFTNGP12.phx.gbl:

Quote:
http://support.microsoft.com/?kbid=252987


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 01:28 PM



If it is an anonymous site it will be IUSER_MACHINE_NAME. If not then it
should be the Windows user

Here is a code check from Darren

Dim WshShell, WshNetwork

Set WshShell = CreateObject("WScript.Shell")
Set WshNetwork = CreateObject("WScript.Network")


sLogString = "ComputerName: " & WshNetwork.ComputerName & vbCrLf
& _


"UserDomain: " & WshNetwork.UserDomain & vbCrLf & _
"UserName: " & WshNetwork.UserName & vbCrLf

WshShell.LogEvent 0, sLogString


Set WshShell = Nothing
Set WshNetwork = Nothing




--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"nevlis" <silven (AT) removesilven (DOT) canada.com> wrote

Quote:
Whould you have any idea of which users should have what permissions
when trying to run DTS with FTP from ASP


Thanks for the help

nevlis

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in news:OvhE0sA#EHA.1264
@TK2MSFTNGP12.phx.gbl:

http://support.microsoft.com/?kbid=252987




Reply With Quote
  #5  
Old   
nevlis
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 02:12 PM



Ok with your script I was able to determine that the user
when running the script in ASP is IUSR_WEBWHATEVER


However this user does not exists on the database server.

I am assuming that the non existance of the user is why I cannot FTP the
user does not have permissions on the target dir?

If this is the case how does one get around the problem...


Thanks for the help


nevlis

Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 02:56 PM



Can you create a user with the exact same name and password?

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"nevlis" <silven (AT) removesilven (DOT) canada.com> wrote

Quote:
Ok with your script I was able to determine that the user
when running the script in ASP is IUSR_WEBWHATEVER


However this user does not exists on the database server.

I am assuming that the non existance of the user is why I cannot FTP the
user does not have permissions on the target dir?

If this is the case how does one get around the problem...


Thanks for the help


nevlis



Reply With Quote
  #7  
Old   
nevlis
 
Posts: n/a

Default Re: DTS & FTP task - 01-11-2005 , 03:05 PM



Apparently I cannot ... I asked my web/database administrator and
he said that the reason is that it sever creates random or dynamic
passwords each time for the ISUR_...

apparently if he changes it this may affect other web-sites


thanks
nevlis

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.