Solved

How to run an .exe file in ssis

Posted on 2009-04-13
5
1,244 Views
Last Modified: 2013-11-10
i am using a execute process to run an .exefile. How can i run a .exe file with out using execute process task in ssis.
0
Comment
Question by:svs1919
  • 2
  • 2
5 Comments
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24132752
0
 

Author Comment

by:svs1919
ID: 24132783
where do i put this course in script task?
0
 

Author Comment

by:svs1919
ID: 24137890
i got thos code in internet but when i paste this code in script task its giving me an error. am i doing right
where do i specify my .exe file that has to run?
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
 
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(Setting.PostProcessor,commandLineArgs);
 
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
 
startInfo.WorkingDirectory = "C:\\Test"; 
 
startInfo.UseShellExecute = false;
 
System.Diagnostics.Process process = new System.Diagnostics.Process();
 
process.StartInfo = startInfo;
 
process.Start();

Open in new window

0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24140725
I am not familiar with VB Code and hence request you to include VB.Net or more zones so that experts can help you out with the VB Script attached.
0
 
LVL 17

Accepted Solution

by:
HoggZilla earned 500 total points
ID: 24143743
You could call the executable from an Execute SQL Task using the xp_cmdshell stored procedure.
http://www.sqlservercentral.com/articles/Administration/xpcmdshell/141/ 
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

685 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