SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Execute Process Task using WinSCP


Execute Process Task using WinSCP

Author
Message
jasminipatel51181
jasminipatel51181
SSC Rookie
SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)

Group: General Forum Members
Points: 46 Visits: 63
Hi ,
I have to transfer file from sftp site to my local server on E:\ecol\ . I have used 3rd party tool WinSCP and created .txt file.
My .txt file is working . I took execute process task to execute .txt file but it is throwing an error invalid access to memory.
Please correct me if I have given incorrect path or arguments .

script for .txt file :

option batch on
option confirm off
open sftp://user:password@IPAddressTongueort
cd ER_Reports\OHE\
option transfer ascii
get AIO_Activity-en-us.csv E:\ecol\

close
exit



path for WinSCP : C:\Program files(x86)\WinSCP\WinSCP.com
path for .txt file : C:\Users\Jpatel\Batch files\ecollege.txt

I am not sure about working directory.


Configuration of Execute process task :

Requirefullname : True
Executable : C:\Program files(x86)\WinSCP\WinSCP.com
Arguments : -script=C:\Users\Jpatel\Batch files\ecollege.txt
Working Directory : C:\Program files(x86)\WinSCP
StandardInputVariable :
StandardOutputVariable:
StandardErrorVariable:
FailTaskIfReturnCodeIsNotSuccessValue : True
SuccessValue : 0
TimeOutValue: 0
WindowStyle : Normal
Please suggest me the solution where I have given incorrect information in the configuration.


Thanks,
Jasmini
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)

Group: General Forum Members
Points: 64646 Visits: 13298
Is it possible to post the entire error message?


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Jamie Thomson
Jamie Thomson
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2757 Visits: 188
Hi Jasmini,
Did you ever get this working? And if so, were you able to get the output from winscp into a variable defined in the StandardOutputVariable property? That's the bit that I am struggling with right now.

thanks
Jamie

Jamie Thomson
http://sqlblog.com/blogs/jamie_thomson
KasumisCat
KasumisCat
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 254
Hello Jamie, What output from WinSCP are you trying to capture in the output variable? I am just curious and may be able to help.
Jamie Thomson
Jamie Thomson
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2757 Visits: 188
julie.d.mcguire (5/9/2013)
Hello Jamie, What output from WinSCP are you trying to capture in the output variable? I am just curious and may be able to help.

Hi Julie,
No worries. I've managed to get it working now. Thanks for the reply anyhow.

regards
Jamie

Jamie Thomson
http://sqlblog.com/blogs/jamie_thomson
Leep 63464
Leep 63464
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 172
hi julie
how did you fix it??
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)

Group: General Forum Members
Points: 53530 Visits: 21207
Leep 63464 (5/10/2013)
hi julie
how did you fix it??


I think 'Jamie' was the name you were looking for :-)


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search