473,396 Members | 1,871 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,396 software developers and data experts.

Tracking Package Execution Status

Hi,

Say, you have two inter-dependent packages of pA and pB. With the
successful execution of pA you would proceed to execute pB. And since
they would perform some repeatitive tasks on regular basis they are
scheduled as a job. But you don't want to the job to make attempt to
run pB if you know pA has failed and you want to nofiy sys adm of it.
And let's say pA has log option checked (so, there's a log file for
it). Now, it would seem to me quite clumsy to check this potentially
huge file to see if a particular package (pA here) is successful before
running pB. Any other viable and clean solution?

Yes, one could possibly combine pA and pB into one big package (pBIG),
however, for the sake of a clean and clear business process this is not
desirable since pA and pB handles
totally different business processes.

TIA.

Nov 23 '05 #1
8 3153
The title of "Tracking Package Execution Status" may be edited as "DTS
Tracking Package Execution Status" for clarity. Unfortunately I can't
edit it or I miss this function.

Nov 23 '05 #2
Stu
There's a lot of ways to do this; you an launch a DTS package from a
DTS package (a master child relationship), and make that launch
dependent on success or failure. OR, you can simply put each package
as a step in the job, and on failure of step one, quit the job and
notify your sysadmin.

Stu

Nov 23 '05 #3

The idea of DTS package inside another is interesting. However, the
key issue here is how to deliver/send an exception/error note/message
to sys admin when there's source data problem. Unfortunately the SMTP
call from sql server in my environment is disabled. I'm looking to see
if alternative is available.

Thanks.

Nov 23 '05 #4
Stu
On Error Scream "Help" :)

Seriously, notification is another issue altogether. However, DTS is
flexible enough that it can do most things, assuming that you have some
sort of notification structure in place. If you've disabled SMTP, how
about (ugh) MAPI? How do you normally handle notification?

Nov 23 '05 #5
"notification is another issue altogether." And yet, it's almost
equally important, imho. OK, I've just looked up MAPI a bit and played
around a bit more about mail capability from sql server. Things that
confuse me about this damn mail thing with sql server is,

My understanding is,
mail may be sent via at least following two options
*) smtp server --> mua (mail user client, e.g. Outlook);
*) exchange server --> mua

My ENV is:
XP prof; sql server 2000; network-wise, I'm on two separate domains,
one handles email via exchange server etc. call it DomainX and another
does other stuff call it DomainY

The box's NT services include smtp service running under Local System
(attempts to use either domain user account failed). And yes it says
it is running (under system account). However, this service's UI does
not include any feature which indicates what IP it uses for the smtp
server, localhost or fqdn?

sql server 2000 and sqlagent services running under DomainY/myAccount
as suggested by some material (attempt to run them under
DomainX/myAccount failed)

RPC running under Local System (default)
RPC Locator running under Network service (default)

(And I must have done something a little while ago about setting up an
MAPI client like Outlook.) Now, when I go to Enterprise Manager, under
Support Services/SQL MAIL,
I have a MAPI profile and test to success. However, however, however,
when I attempted to run some sql extended procs for mail function like
xp_startmail, xp_sendmail, xp_stopmail I ran into errors, err msgs
include "failed with mail error 0x80004005". Searching for this err
msg has not generated interesting enough info.
Though the following thread was sort of interesting,
http://groups.google.com/group/micro...2e2c92c4a7e8db
7. Michael J. McMurtrey 's writing is very good.

I suspect that it's related network security ...

FYI, I've also looked into another option, and again that may be
constrained by network security.

Any further thought?

Thanks.

Nov 23 '05 #6
Stu
"(And I must have done something a little while ago about setting up an
MAPI client like Outlook.) Now, when I go to Enterprise Manager, under
Support Services/SQL MAIL,
I have a MAPI profile and test to success. However, however, however,
when I attempted to run some sql extended procs for mail function like
xp_startmail, xp_sendmail, xp_stopmail I ran into errors, err msgs
include "failed with mail error 0x80004005". Searching for this err
msg has not generated interesting enough info. "

Are you logging in as the account under which the SQL Server service is
running? Be sure that you have a mail profile set up for that account,
and that profile is the one being used in SQL Mail.

Nov 23 '05 #7
Yes. However, this account is not for the Outlook (default). Probably
we're getting a bit closer to the source of the problem. So, I created
another account/profile under Outlook, but this new
account could not use Exchange server (that's the way things are set up
here: one account only, in normal sense perfectly correct), so I use
IMAP server for incoming and stmp for outging (thogh I'm not sure if I
have IMAP server at all, server address, initially Localhost, however,
Outlook complained not found, then I used my box's IP address. Now,
the Email account under Outlook profile has 2 accounts: one default and
another newly created (this one is probably still bogus). Still won't
work. Do I have to restart 'everything'? Somehow I strongly suspect
it's related network user permission sort of security thing.

Thanks.

Nov 23 '05 #8
Just an update, my alternative approach seems quite promising. Out of
box, out box!!

Nov 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Grant | last post by:
Hi, Could any body tell me what is the problem? I wrote a DTS application which will download a large file (about 100M) and bulk insert many records into the database (about 300'000 each time),...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
6
by: Page Horton | last post by:
I have a ASP.NET (VB) web application running. The DTS package is suppose to generates a flat file to a file path (aka: \\myStation\outputFiles\). When it runs it generates the following error on...
11
by: SKBodner | last post by:
Hello, I'm stumped and I'm hoping someone could help me figure out the best way to track daily attendance for the next 6-4 months. I have a list of 80 or so participants who should be attended...
1
by: bdockery | last post by:
So I figured out that if you use this html: http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=<TRACKING...
3
by: nghivo | last post by:
I attempted to synchronize async Ajax calls using the following JS blocks: ==================================================== function getXMLHTTPRequest() { try { req =...
0
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
6
by: squishywaffle | last post by:
This has got me somewhat stumped, so I'll throw it up here in hopes that someone has ran into this before. I'm trying to send a MIME package to Esko Backstage. I'm a bit confused as to how to send...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.