Solved

Read output of exe in SSIS Package

Posted on 2011-02-22
3
1,514 Views
Last Modified: 2012-06-27
Hi,

I am executing a exe in SSIS using Execute Process Task. This exe returns a integer value. How to capture it in SSIS package?
0
Comment
Question by:priyanka_kothari
3 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 34955691
You can call a SSIS from within a SSIS and pass a parameter like:

DTSRun /S "(local)" /N "PkgTest" /A "varFile":"8"="File_001.xls" /E

Note: "8" is DataType ID

Parameterized SSIS Package - Passing parameters to SSIS package from command line
DTSExec /SQL "\PkgTest" /SERVER "(local)" /SET "\Package.Variables[User::varFile].Value";"File_001.xls"

Please refer the following to get more info on DTExec:

http://msdn.microsoft.com/en-us/library/ms162810.aspx

0
 
LVL 2

Assisted Solution

by:Michael-Thomas
Michael-Thomas earned 250 total points
ID: 34956865
In the Process section of the Execute Process task there is a spot to supply a variable for the standard input/output which you can use later in your package
0
 
LVL 6

Accepted Solution

by:
Rajesh_mj earned 250 total points
ID: 34958414
Please create a variable and use the variable in the ExecValueVariable property of the Execute Process Task.

Please refer below link for the details:
http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8df1c8e0-5149-44bd-a6cd-0c7f1364a7cc

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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