Scheduled DTS package

Scheduled DTS package

Post by Owen Mansk » Thu, 20 Feb 2003 03:27:56



This seems to be a pretty hot topic so I guess I'll ad my post.

We have SQL 2000 as a cluster on 2 servers.

Our DTS package brings a small amount of data into some tables into another
database and then runs a visual basic executable which validates the data,
then pushes it back into the production database.

2 of the cluster instances are identical: one is for test, one is for
production.

Here is what is happening:

In the test instance the DTS package runs fast, both when executed directly
and when scheduled as a job (about 30 seconds).

In the production instance the DTS package runs fast when executed directly
(about 30 seconds) but when scheduled it takes about an hour and a half!
This makes no sense to me.

I checked to make sure that the user who owns the DTS package and the
scheduled job has permissions (they do - they are a sysadmin) AND that they
have the correct registry access permissions using DCOMCNFG- they do.

Any ideas?

 
 
 

Scheduled DTS package

Post by Shawn » Thu, 20 Feb 2003 03:52:07


Without seeing your configuration, the first thing I would
do is to put some writes into your DTS (to a flat file, or
to a database).  Though this will slow you down a bit
initially, it will at least gear you to the exact action
(connection/query/execution) that is taking so long.

I'll check back into this message later once you have
narrowed down location.

shawn

Quote:>-----Original Message-----
>This seems to be a pretty hot topic so I guess I'll ad my
post.

>We have SQL 2000 as a cluster on 2 servers.

>Our DTS package brings a small amount of data into some
tables into another
>database and then runs a visual basic executable which
validates the data,
>then pushes it back into the production database.

>2 of the cluster instances are identical: one is for
test, one is for
>production.

>Here is what is happening:

>In the test instance the DTS package runs fast, both when
executed directly
>and when scheduled as a job (about 30 seconds).

>In the production instance the DTS package runs fast when
executed directly
>(about 30 seconds) but when scheduled it takes about an
hour and a half!
>This makes no sense to me.

>I checked to make sure that the user who owns the DTS
package and the
>scheduled job has permissions (they do - they are a

sysadmin) AND that they

- Show quoted text -

Quote:>have the correct registry access permissions using
DCOMCNFG- they do.

>Any ideas?

>.


 
 
 

Scheduled DTS package

Post by Owen Mansk » Thu, 20 Feb 2003 04:07:22


Sorry- I should have been more explicit. The execution of the VB executable
is what is taking so long. It executes over 2200 stored procedures (located
in the "edit" database) and runs them against the tables in the edit
database. If the dts package (which calls the VB program) is executed
directly the VB executable takes about 30 seconds to finish. If the DTS
package is scheduled it takes 1.5 hours.


Quote:> Without seeing your configuration, the first thing I would
> do is to put some writes into your DTS (to a flat file, or
> to a database).  Though this will slow you down a bit
> initially, it will at least gear you to the exact action
> (connection/query/execution) that is taking so long.

> I'll check back into this message later once you have
> narrowed down location.

> shawn

> >-----Original Message-----
> >This seems to be a pretty hot topic so I guess I'll ad my
> post.

> >We have SQL 2000 as a cluster on 2 servers.

> >Our DTS package brings a small amount of data into some
> tables into another
> >database and then runs a visual basic executable which
> validates the data,
> >then pushes it back into the production database.

> >2 of the cluster instances are identical: one is for
> test, one is for
> >production.

> >Here is what is happening:

> >In the test instance the DTS package runs fast, both when
> executed directly
> >and when scheduled as a job (about 30 seconds).

> >In the production instance the DTS package runs fast when
> executed directly
> >(about 30 seconds) but when scheduled it takes about an
> hour and a half!
> >This makes no sense to me.

> >I checked to make sure that the user who owns the DTS
> package and the
> >scheduled job has permissions (they do - they are a
> sysadmin) AND that they
> >have the correct registry access permissions using
> DCOMCNFG- they do.

> >Any ideas?

> >.

 
 
 

Scheduled DTS package

Post by Owen Mansk » Thu, 20 Feb 2003 23:27:44


I think we figured this out. The drive that the VB executable is on is a
virtual drive in a virtual drive array. We had been specifying the drive
letter for the path, but we changed it to the UNC. That and a re-boot seems
to have cured it.

Go figure.


Quote:> This seems to be a pretty hot topic so I guess I'll ad my post.

> We have SQL 2000 as a cluster on 2 servers.

> Our DTS package brings a small amount of data into some tables into
another
> database and then runs a visual basic executable which validates the data,
> then pushes it back into the production database.

> 2 of the cluster instances are identical: one is for test, one is for
> production.

> Here is what is happening:

> In the test instance the DTS package runs fast, both when executed
directly
> and when scheduled as a job (about 30 seconds).

> In the production instance the DTS package runs fast when executed
directly
> (about 30 seconds) but when scheduled it takes about an hour and a half!
> This makes no sense to me.

> I checked to make sure that the user who owns the DTS package and the
> scheduled job has permissions (they do - they are a sysadmin) AND that
they
> have the correct registry access permissions using DCOMCNFG- they do.

> Any ideas?

 
 
 

1. Scheduling DTS Packages via DTS, SQLDMO COM Object

Chris, have you explored SQL-NS object model? You might be able to use it
for displaying the job properties dialog box. See Books Online/MSDN for more
info and samples.

--
HTH,
Vyas, MVP (SQL Server)

http://vyaskn.tripod.com/


     I am writing an application that allows users to pick a "template"
DTS package, changes the global vars to fit thier unique needs, and
create a new instance of the DTS package on the server of thier choice
(All this is done via the DTS and SQLDMO COM objects). This has worked
great so far.

     Now, I am at a point where I must create a job for the DTS package.
This again, is done via the COM object, with varying degrees of success.
My main problem now is the complexity of the "Edit Reccuring Job
Schedule" screen (attached as a bitmap). Is there a way to use the
dialog listed here to set the COM object?

     I really need an interface (Hopefully the one showed in the
attached picture) to set the schedule for the Job. I have struggled for
several days on this and normally wouyld not ask for help, but I am
extremly desperate. Any help would be appreciated.

Thank You,
Chris Landress

----------------------------------------------------------------------------
----

2. Out of Space

3. Problem: NE 3.1 does not use old NE 3.0 private workspace

4. Scheduling DTS packages...HELP!

5. 16bit Odbc driver for Oracle

6. scheduling DTS package

7. Stored procedure TIMEOUT

8. Error scheduling DTS package

9. schedule DTS package replication

10. Scheduled DTS package runs indefinitely

11. Can not run a scheduled dts package

12. Schedule DTS package error