SolvedPrivate

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

Posted on 2014-07-17
6
20 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
  • 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

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

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 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

12 Experts available now in Live!

Get 1:1 Help Now