Advertisement

11.13.2005 at 08:50AM PST, ID: 21629185
[x]
Attachment Details

DTS to report errors...

Asked by poutses in MS SQL Server, MS SQL DTS

Tags: , ,

I have a slightly simple problem. Every day I run a stored procedure called DailySynchronisation, that connects to a linked server and selects some data, and then inserts/updates them in my database. Unfortunately, 2-3 times per month, this stored procedure stops working, because of many reasons:

(a) the ODBC driver is not behaving correctly
(b) the linked server is off
(c) people that load data in the linked server forget to upload them...
(d) many other reasons....

This SP runs once every day at 4am, and ends about 15minutes later. If it ends correctly, I get a statement in a table called DailyLog. If not, I do not get this statement. In any case, since this runs with a DTS, the DTS says that this job completed successfully, although it did not, because the SP ended at some point abnormaly. How can I capture such errors while the DTS runs, so that these can be reported???

Even though in the Job properties in the SQL Server Agent, it has options to report failure, it seems the system does not understand that a failure took place....

ThanksStart Free Trial
[+][-]11.13.2005 at 10:56AM PST, ID: 15284039

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11.13.2005 at 10:33PM PST, ID: 15286026

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 12:22AM PST, ID: 15286232

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 06:30AM PST, ID: 15287748

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 06:36AM PST, ID: 15287808

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, MS SQL DTS
Tags: dts, capture, errors
Sign Up Now!
Solution Provided By: JMattias
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32