SolvedPrivate

Execute C# exe program from ssis packages through sql 2012 agent job

Posted on 2014-07-17
6
25 Views
Last Modified: 2016-02-11
I have a SSIS package which calls Exe when I run the package from Microsoft visual studio the package runs fine but when I run the package from sql server agent job I'm getting error

     To run a SSIS package outside of SQL Server Data Tools you must install Execute C#
0
Comment
Question by:Bharat Guru
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:Akhil vangala
ID: 40203011
The only difference is when you running it is using integrated windows authentication SSPI , when you running under the agent it might be using the agent service account which might not have the previllges it needs to run the exe

Agent job security
Grant agent service account required privilleges to run the exe or create a proxy account

let me know if you need help to create the proxy account
0
 

Author Comment

by:Bharat Guru
ID: 40203181
how can I check the Grant agent service account has the permission to run exe or not?
0
 

Author Comment

by:Bharat Guru
ID: 40203212
Agent service account has the privilleges to run the exe because when I try to run the exe by it self with out SSIS pachage  from sql server agent where job type = "Operation System (CmdExec)"  then exe successfully executed.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Accepted Solution

by:
Akhil vangala earned 385 total points
ID: 40212794
What task are you using in ssis (execute process task) ? does your exe return a return code when it is success

If you are using process task make sure you set the proper working directory
0
 

Author Closing Comment

by:Bharat Guru
ID: 40215350
Thanks, It worked after I installed integration service
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40215837
Thanks, It worked after I installed integration service
Which is exactly what I told you in your previous duplicate question here:
http://www.experts-exchange.com/Database/MS-SQL-Server/Q_28477152.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

717 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