dbTalk Databases Forums  

Scheduled Package dose not being instanciated more than once

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Scheduled Package dose not being instanciated more than once in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J-T
 
Posts: n/a

Default Scheduled Package dose not being instanciated more than once - 06-17-2005 , 05:06 PM






I have a Parent package which call different child packages.I have schaduled
the Parent package to be executed evey 3 minutes and I'm using a Table in
which I insert the name of the child package which is working and when it is
done I delete the row,by this mechanism I control not 2 child packages get
executed at the same time(Because they do transactional things on their own
table, and I won;t tend to be stuck in deadlocks).

Problem is that I am expecting that two different child packages could be
executed at the same time but for some reason when Parent package call one
child package and it takes more than 3 minutes,none of the other packages
run.There is no any other instance of Parent package running.

When I schadule something ,it is supposed to be run at an specific interval
right?

Thanks



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Scheduled Package dose not being instanciated more than once - 06-18-2005 , 05:53 AM






The same job cannot be run more than once at the same time.

A way to control child package exeution would be to link them through
workflow wouldn't it?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote

Quote:
I have a Parent package which call different child packages.I have
schaduled the Parent package to be executed evey 3 minutes and I'm using a
Table in which I insert the name of the child package which is working and
when it is done I delete the row,by this mechanism I control not 2 child
packages get executed at the same time(Because they do transactional things
on their own table, and I won;t tend to be stuck in deadlocks).

Problem is that I am expecting that two different child packages could be
executed at the same time but for some reason when Parent package call one
child package and it takes more than 3 minutes,none of the other packages
run.There is no any other instance of Parent package running.

When I schadule something ,it is supposed to be run at an specific
interval right?

Thanks




Reply With Quote
  #3  
Old   
J-T
 
Posts: n/a

Default Re: Scheduled Package dose not being instanciated more than once - 06-18-2005 , 09:04 PM



Hi Allan,

My parent package is a separte package than the child packages.I load the
package based on the CSV file which is recieved in Parent package,then in an
Activex script I load the appropriate package.

Quote:
The same job cannot be run more than once at the same time.
What a pitty,I thought it could be.Now the only option I have is that I can
create two or three jobs of my Parent Package,can I? My only concern is that
child packages logging the validation errors in one Table (That table is
shared between all the child packages).Will I be stuck in dead lucks or
something? I insert the log records by calling a stored procedure (no
transaction involved) in child packages(there is a Execute SQL Task in each
child package which referes to that stored procedure).

Thanks for your help Allan (as always:-))

Cheers,


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The same job cannot be run more than once at the same time.

A way to control child package exeution would be to link them through
workflow wouldn't it?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote in message
news:ulaKIj4cFHA.412 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a Parent package which call different child packages.I have
schaduled the Parent package to be executed evey 3 minutes and I'm using a
Table in which I insert the name of the child package which is working and
when it is done I delete the row,by this mechanism I control not 2 child
packages get executed at the same time(Because they do transactional
things on their own table, and I won;t tend to be stuck in deadlocks).

Problem is that I am expecting that two different child packages could be
executed at the same time but for some reason when Parent package call
one child package and it takes more than 3 minutes,none of the other
packages run.There is no any other instance of Parent package running.

When I schadule something ,it is supposed to be run at an specific
interval right?

Thanks






Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Scheduled Package dose not being instanciated more than once - 06-19-2005 , 02:38 AM



The same package cn be called at the same time multiple times.

OK so what I think you are trying to do is this

Fire a DTS package every 3 minutes (Parent)
In the parent package you check a csv file. Based on the CSV file you call
a package(Child)

I am not sure how you do the check here.

Would it be possible for you to fire the package based on an event? The
file being dropped?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote

Quote:
Hi Allan,

My parent package is a separte package than the child packages.I load the
package based on the CSV file which is recieved in Parent package,then in
an Activex script I load the appropriate package.

The same job cannot be run more than once at the same time.
What a pitty,I thought it could be.Now the only option I have is that I
can create two or three jobs of my Parent Package,can I? My only concern
is that child packages logging the validation errors in one Table (That
table is shared between all the child packages).Will I be stuck in dead
lucks or something? I insert the log records by calling a stored procedure
(no transaction involved) in child packages(there is a Execute SQL Task in
each child package which referes to that stored procedure).

Thanks for your help Allan (as always:-))

Cheers,


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OXTVqP$cFHA.3488 (AT) tk2msftngp13 (DOT) phx.gbl...
The same job cannot be run more than once at the same time.

A way to control child package exeution would be to link them through
workflow wouldn't it?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote in message
news:ulaKIj4cFHA.412 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a Parent package which call different child packages.I have
schaduled the Parent package to be executed evey 3 minutes and I'm using
a Table in which I insert the name of the child package which is working
and when it is done I delete the row,by this mechanism I control not 2
child packages get executed at the same time(Because they do
transactional things on their own table, and I won;t tend to be stuck in
deadlocks).

Problem is that I am expecting that two different child packages could
be executed at the same time but for some reason when Parent package
call one child package and it takes more than 3 minutes,none of the
other packages run.There is no any other instance of Parent package
running.

When I schadule something ,it is supposed to be run at an specific
interval right?

Thanks








Reply With Quote
  #5  
Old   
J-T
 
Posts: n/a

Default Re: Scheduled Package dose not being instanciated more than once - 06-21-2005 , 01:55 PM



Thanks Allan,

My idea is now working.I schaduled the Parent package twice to be executed
after 3 minutes (I have two jobs of the same parent package).As I siad child
packages write their logs into a common table using a stored proc (with one
simple insert and no transaction).Apparently everything is fine.

Quote:
I am not sure how you do the check here
I have information about each file in database ,and based on that
information I decide which package I should execute.In the meantime I use a
table to keep track of executing packages and by using that table I won;t
let two instance of the same package run at the same time.Reason is that In
child packages I call stored procedures which use Transactions and I don;t
wnt to be tarpped by deallock or stuff like this ,that's why I came up with
the idea of not letting two instances of the same child package run at the
same time ,but I can have differnet instances of the child packages working
simultaniously .

Makes sense?

Thanks
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The same package cn be called at the same time multiple times.

OK so what I think you are trying to do is this

Fire a DTS package every 3 minutes (Parent)
In the parent package you check a csv file. Based on the CSV file you
call a package(Child)

I am not sure how you do the check here.

Would it be possible for you to fire the package based on an event? The
file being dropped?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote in message
news:e5OWyMHdFHA.3616 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi Allan,

My parent package is a separte package than the child packages.I load the
package based on the CSV file which is recieved in Parent package,then in
an Activex script I load the appropriate package.

The same job cannot be run more than once at the same time.
What a pitty,I thought it could be.Now the only option I have is that I
can create two or three jobs of my Parent Package,can I? My only concern
is that child packages logging the validation errors in one Table (That
table is shared between all the child packages).Will I be stuck in dead
lucks or something? I insert the log records by calling a stored
procedure (no transaction involved) in child packages(there is a Execute
SQL Task in each child package which referes to that stored procedure).

Thanks for your help Allan (as always:-))

Cheers,


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OXTVqP$cFHA.3488 (AT) tk2msftngp13 (DOT) phx.gbl...
The same job cannot be run more than once at the same time.

A way to control child package exeution would be to link them through
workflow wouldn't it?


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote in message
news:ulaKIj4cFHA.412 (AT) tk2msftngp13 (DOT) phx.gbl...
I have a Parent package which call different child packages.I have
schaduled the Parent package to be executed evey 3 minutes and I'm using
a Table in which I insert the name of the child package which is working
and when it is done I delete the row,by this mechanism I control not 2
child packages get executed at the same time(Because they do
transactional things on their own table, and I won;t tend to be stuck in
deadlocks).

Problem is that I am expecting that two different child packages could
be executed at the same time but for some reason when Parent package
call one child package and it takes more than 3 minutes,none of the
other packages run.There is no any other instance of Parent package
running.

When I schadule something ,it is supposed to be run at an specific
interval right?

Thanks










Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.