?
SolvedPrivate

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

Posted on 2014-07-17
6
Medium Priority
?
26 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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Accepted Solution

by:
Akhil vangala earned 1540 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

764 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