473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Calling external apps from SQL Agent

Hi everyone, I have a recurring problem with integrating DTS packages that call up non-SQL Server applications. For example, I want to kick off a script in Filemaker that will export data for use in SQL Server. My DTS includes a step to launch and run that application, then return to SQL Server and take care of the resulting data.

My packages work fine if I run the DTS package directly from the Enterprise Manager logged in as myself, but fail when the SQL Agent calls the same package. The error at the SQL Agent level is pretty meaningless (a timeout), but I am pretty sure it has to do with the permissions. Is the only solution to change the ID the SQL Agent Service runs under to mine? Or is there another way to make the agent run an external app with appropriate permissions, etc.?

Thanks in advance.
Aug 16 '08 #1
1 2664
I should add that running it from a batch file containing the DTSRUN command has the same problem: it works fine if I execute the batch directly, but fails if the SQL Agent tries to run it. It starts but then reaches this error:

Expand|Select|Wrap|Line Numbers
  1. Executed as user: MYDOMAIN\SQL_User. ...accountname /Ppassword /NMyExternalDTSPackage DTSRun:  Loading...   DTSRun:  Executing...   DTSRun OnStart:  DTSStep_DTSCreateProcessTask_1   DTSRun OnError:  DTSStep_DTSCreateProcessTask_1, Error = -2147220330 (80040496)      Error string:  CreateProcessTask 'DTSTask_DTSCreateProcessTask_1':  Process returned code -1, which does not match the specified SuccessReturnCode of 0.      Error source:  Microsoft Data Transformation Services (DTS) Package      Help file:  sqldts80.hlp      Help context:  4900      Error Detail Records:      Error:  -2147220330 (80040496); Provider Error:  0 (0)      Error string:  CreateProcessTask 'DTSTask_DTSCreateProcessTask_1':  Process returned code -1, which does not match the specified SuccessReturnCode of 0.      Error source:  Microsoft Data Transformation Services (DTS) Package      Help file:  sqldts80.hlp      Help context:  4900      DTSRun OnFinish:  DTSStep_DTSCreateProcessTask_1   DTSRun: ...  Process Exit Code 1.  The step failed.
  2.  
Ideas for a different way to structure this? It's something I've run into several times for different tasks.
Aug 16 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: - | last post by:
Hi there All, Don't know if this is possible at all, but here goes. I've got a page (an active server page if that makes any difference), that is pulling some sticky content from...
0
by: Robby Dermody | last post by:
Hey guys (thus begins a book of a post :), I'm in the process of writing a commercial VoIP call monitoring and recording application suite in python and pyrex. Basically, this software sits in a...
5
by: claus.hirth | last post by:
If I create the function HELLO in schema S01 as follows, @ CREATE FUNCTION S01.HELLO() RETURNS VARCHAR(32) EXTERNAL NAME 'UDFSRVXYZ!sayHelloWorld' LANGUAGE JAVA PARAMETER STYLE DB2GENERAL NO...
3
by: Webdiyer | last post by:
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got...
2
by: Krish | last post by:
hi all, i'm wondering if there are any best practices for distributing apps which require the .net framework to run. i've read about using the .net bootstrapper which will install the .net...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
1
by: Dominic via DotNetMonster.com | last post by:
I am a CA-OpenROAD programmer, but I attempting to build some VB.NET DLLs and access them through OpenROAD as an external Windows TypeLib. I have managed to build a simple DLL (code follows) but...
1
by: Grzegorz Smith | last post by:
Hello. I need to call remote lotus' agent in my application, does anyone do something like that? I search google for the solution and i find that I can use COM to connect to Lotus, but probably I...
6
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
ASP.NET 2.0 / Visual Studio 2005 / VB.Net 2.0 I have a web interface that needs to launch a java application. What a long strange trip it has been... I am using Process.Start process start...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.