Solved

Read output of exe in SSIS Package

Posted on 2011-02-22
3
1,416 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now