How to use a key file in the FTP Task using and SSL connection
In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.
Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site? If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files
from an SSL FTP site? Thank you for any help offered.
public void Main()
ConnectionManager FTPConn;
FTPConn = Dts.Connections["FTPServer"];
FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);
Dts.TaskResult = (int)ScriptResults.Success;
Antonio
You can use SFTP for this.
This is a way of implementing SFTP in SSIS using standard tasks
http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
also see
http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
How can I add short cuts to the windows task bar and windows start menu??
Hi guys,
I am trying to figure out how to add stuff to the windows start menu and windows task bar. I have no clue on how to do this. Can anyone help me pliz?? one other question is that if I manage to do it some how, it will limit my program to windows right?? is there a way out of it??Can anyone help me pliz?? one
other question is that if I manage to do it somehow,
it will limit my program to windows right?? isthere
a way out of it??Yes. Writing it in VB.I'm sorry, I'm too tired to actually read. I thought you want to limit it to Windows. No, you won't be limiting it to Windows, as your application will hopefully not crash in case there is no start menu entry or system tray icon. -
How to upload an output file to the ftp
Hi everyone,
Could anybody please guide me about how can i upload an output file (a text file from SAP Program) directly to ftp location?
Please guide.
Thanks and RegardsHi,
This is one sample program (picked from some other post of Sudheer long back, I don't have the URL).
REPORT abc.
DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.
DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.
START-OF-SELECTION.
*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.
DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
ID 'DSTLEN' FIELD MI_PWD_LEN.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
USER = 'userid'
PASSWORD = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
HOST = 'unix-host'
RFC_DESTINATION = 'SAPFTP'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = MI_HANDLE
COMMAND = 'dir'
TABLES
DATA = MTAB_DATA
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA.
WRITE: / MTAB_DATA.
ENDLOOP.
ELSE.
* do some error checking.
WRITE: / 'Error in FTP Command'.
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
OTHERS = 1.
Regards,
Amit Mittal. -
Hello,
I'm looking for the most obvious and simple way to, from Labview :
1- Start the Teststand engine : DONE
2- Get a list of SEQ files to execute : DONE
3- Loop through the list to execute each SEQ file : <- found some examples but I have some trouble with the UIMessage stuff
http://zone.ni.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/executing_sequences_using_api_labview/
4- Get the result of the SEQ execution : <- unsure
5- Get the XML path+name of the report file generated : <- obviously not easy
http://digital.ni.com/public.nsf/allkb/3D3B2358DF9B786B8625789500549A3B
http://forums.ni.com/t5/NI-TestStand/Getting-Report-File-Path-location-at-execution-in-TestStand-2012/td-p/3041789
Here is my current implementation :
David Koch
Hello,
I tried to work from this example :
http://forums.ni.com/t5/NI-TestStand/Execution-of-TestStand-Sequence-in-LabVIEW-via-TS-API-Different/td-p/2939616/page/2#M46686
However it remains unclear about how to get a simple
answer from just running a sequence file out of any
model so far (Simple Pass). Like I told you, all what
I need, once the TS engine is started, is a VI with the
following interface :
INPUT
1- TS engine reference
2- SEQ file path (path or string)
3- Sequence name to execute
4- UUT string (optional, but yeah)
5- error in
OUTPUT
1- Result boolean (PASS/FAIL)
2- Path to XML report
3- error out
It would be so cool to just have this
About the surrounding UI, I'm working on it. The LV
code is not really important at this point, it's running
a SEQ file that matters to me.
David Koch
-
How to Upload License Key File of MiniSap to SAP System ?
Hi,
I have received the license key for MiniSap. I have downloaded the license key file to my local system. Please tell me how to upload this file to the SAP system. I am using Windows XP (SP2) and the MiniSap edition is 6.10 WA1.
I have to tried to directly enter the license key through transaction code Slicense but got the error "Incorrect Parameter Specified". I also tried to install through OS level but even could not do so. I have ordered key 5 times, none works on either SAP level or the OS level.
Somebody told me to upload the file, Please Guide me how to upload license key file to the SAP System.
Thank You
Best Regards,
RyanVery late into the reply. But I am sure someone will run into this issue again -
In windows cmd prompt, navigate to c:\mbs.
Then type saplicense.exe -install then follow the prompt.
NOTE: If you get the following error -
C:\MBS>saplicense.exe -install
*** SAPLICENSE (Release 46D) ERROR ***
ERROR: Can not set DbSl trace function
DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
RC-INFO: error loading dynamic db-library - check environment for:
dbms_type = <db-type> (e.g. ora)
DIR_LIBRARY = <path to db-dll> (e.g. /usr/sap/SID/SYS/exe/run)
Type"C:\MBS>dbenv.cmd", once it is done. simply retype
saplicense.exe -install then follow the prompt.
Good Luck.
T.H. -
How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?
If you are unable to empty the trash, try holding the Option key while selecting Empty Trash.
Otherwise, some steps in the following link may help you.
http://support.apple.com/kb/ht1526 -
How to delete a local file in the presentation server.
Hi All,
How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
Thanks in advance.
Regards,
Vishaldata: l_rc type i.
data: f_name type string.
move 'c:\YourFile.txt' to f_name.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
EXPORTING
FILENAME = f_name
CHANGING
RC = l_rc
EXCEPTIONS
FILE_DELETE_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
FILE_NOT_FOUND = 4
ACCESS_DENIED = 5
UNKNOWN_ERROR = 6
NOT_SUPPORTED_BY_GUI = 7
WRONG_PARAMETER = 8
others = 9
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How do I move music files from the startup disc to iTunes in the other internal hard disk os 10.5.8?
The music I want to move was in iTunes but is now just files. I had to reinstall a new iTunes and lost all my old music.
Thank you!That article is about using your iPod as an external hard drive, to move files from one computer to another computer. It is not related to your question.
You can't use iTunes to move song files from iPod to computer, except for songs you purchased from the iTunes Store (and you can also re-download purchases). However, there are third-party methods and utilities that can move song files from iPod to computer. If you do a Google search on something like "ipod transfer," you should get some links.
Once the song files are on your current computer, add them to that computer's iTunes library by dragging the files (or folder containing the files) to the iTunes window. After confirming everything is there (and fixing the data issue you mentioned) you can sync the iPod. You may want to do a Restore on the iPod, if it might have a data corruption issue, which will erase the iPod's hard drive, re-install the latest software, and set it to defautl settings. -
How to open a .JAR file on the Z30
Hi,
Would anyine know how to open a .JAR file on the Z30?
I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
Cheers
MarioJAR files are for older java phones, they dont work on BB10
maybe you should look into using SNAP to get some apps yoru looking for
http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
How to refer a .jar file in the code.
How to refer a .jar file in the code.
I want to use a library dnsjava.jar, which I download from the internet. I want to know how to refer it
If I am compiling the code on Solaris
If I compiling the code on windows using eclipse.
I added the following line in my code to refer to this library. But it always complains of not found the class
import org.xbill.DNS.*;
I tried the following to add this library but did not work
On eclipse/windows: Went to window-> preferences -> BuildPath _> class path Variable.
On Solaris: Could not add this library /opt/java_reference/v1.6.0_04/jre/lib. Although I am logged in as root, but not able to add the library there. Complains of Permission denied.Set the classpath option when compiling.
javac -classpath /path/to/lib/dnsjava.jar YourProgram.java
I don't use Eclipse, but it probably has a library list on your project preferences. Add it there.
Regards,
Henrique Abreu -
HT2203 How do I export a file from the new iMovie 10.0.2 to iPod size?
How do I export a file from the new iMovie 10.0.2 to iPod size? I used to be able to do this and it would save as a m4v file but I can no longer do this and the files are too big.
iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
iTunes: Frequently asked questions about viewing and syncing videos
You may need a third-party computer app like HandBreak. That one is free and has preset outputs for iOS devices -
How can I link .svg files in the .html code?
How can I link .svg files in the .html code?
I use the FileBrowser app by Stratospherix to do this. I can watch / stream my movies on my iPhone / iPad from my hard drive connected to my Airport Extreme. I can access all the files on that hard drive as well.
-
How to import jar & exp file into the eclipse 3.1 + jcop
hi, I am new to the javacard technology.
I have implementing applet by using eclipse 3.1 + jcop plugin.
recentlly, i got jar and exp file from someone. and I have to import given two files in the my applet.
Q1. but i don't know how to use(import) two files into the elipse.
and...
I have tried to put the export file structure in the build path, but I am still getting the same error:
Q2. "resolving constant-pool of clazz cash/ccash; failed: no such clazz cash/ccash;", what means?
anyone help me~plz!
many thanks..
lsh.
Message was edited by:
neonoble1) In the Package explorer right-click the project you want to import the jar files into.
2) Click import
3) Select Archive file in the Import dialog box and click next
4) Browse to the jar file and select it
Socx -
How do I get my file into the time line in Premiere Pro CC?
How do I get my file into the time line in Premiere Pro CC? I am use to Premier Pro CS6 and unfortunately my labtop took a crash and I lost all of my adobe products. I wanted to check out a trial version and I cannot seem to find one for CS6! Please Help Me! My project is due tonight!!!!!
Hi Aneumann,
Welcome to the Forums.
You have to just right click on the clip imported, in the project panel and select new sequence from clip. You can also go to file menu>new>sequence and create a sequence and then drag the clips after importing them , into the timeline.
Regards,
Vinay -
Can any one tell me how to attach a pdf file to the mail through workflow
I have a smart which i am able to convert it to a pdf file...now.. can any one tell me how to attach a pdf file to the mail through workflow
Hi,
To create the task for attachment
Use the BOR SELFITEM and method NOTES_APPEND.
The out come of this task contain a link called attachment with a clip attached. Clisk on that icon and choose the type of attachment u want . RAW , EXCEL , TXT , PDF... Then using the import icon u can attach the document u like.
But the TYPE : OBJ.
Similarly using NOTE_DISPLAY method u can display the documents u like.
In any work item u have the facility to attach any atttchment for further circulation .
Attchment @ WORKITEM
1.Click the workitem for which you want to create the attchment
2.Press create attachment
3. Add the attachment u like (PDF)
Reward points for useful answer.
Richard A
Maybe you are looking for
-
Text box not showing full text
Hi everyone I have a text box which i am using to display the path of a perticular file. but if the path is long then is doent get displayed on the text box which is of specific dimension. I cannot change the dimensions of the text box coz it will gi
-
How to fix Airport Time Capsule (2013)? Has been extremely slow lately
I have the newest Airport Time Capsule 2TB, it has been very slow lately. On my MacBook Pro YouTube, Safari, and iTunes cant load at all. What do I need to do to fix this problem?
-
Imessage is not working for one person
My imessage is not working for one person. Its been like this for about 2 days I have an iphone 5 imessage is on both phones reset network settings,deleted and remade contact, etc.
-
Problem in Upgrade 4.6C to ECC 6.0
I have a copy of our production system running SAP R/3 4.6C on HP-UX 11.11 and Oracle 9i. PREPARE phase "Initialization" keeps failing with the same space requirements for PSAPUNDO and PSAPTEMP, although I have added space several times already. I h
-
I can't open the Oracle JiInitiator program v1.3.1.28
Hi After installing the Firefox V3.6.10 , I can't open the Oracle JiInitiator program v1.3.1.28. Please note that, the Oracle JiInitiator program v1.3.1.28. Was installed and running normal on windows explorer 8? So please help me Thanks Essam