dbTalk Databases Forums  

waiting for task to end

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


Discuss waiting for task to end in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
clemlau@yahoo.com
 
Posts: n/a

Default waiting for task to end - 07-11-2005 , 03:55 PM






Hello,

I have a dts package (DTS1) that is fixed to process a text file with a
specific name and load it into my database.

I have several files that need to be loaded by this dts, so I was
wondering how I could do this.

I programmed a separate DTS that has an activex script that runs in a
loop: it gets a file, renames it and runs the dts package (DTS1).

I thought this would work but when I call this line that runs the DTS
package:

oPkg.LoadFromSQLServer
msDTSServer,msDTSUser,msDTSPwd,DTSSQLStgFlag_Defau lt,"","","",DTS1

It does not wait for (DTS1) it to finish before continuing with the
loop. So what ends up happening is DTS1 gets called again and again.
I need it to wait for DTS1 to finish before proceeding.

Does anyone know how to deal with this?

Thanks in advance.
Clem

also if anyone has any other ways to do this, it would be much
appreciated.


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

Default Re: waiting for task to end - 07-11-2005 , 04:25 PM






You want to loop and pick up files?

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--



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


<clemlau (AT) yahoo (DOT) com> wrote

Quote:
Hello,

I have a dts package (DTS1) that is fixed to process a text file with a
specific name and load it into my database.

I have several files that need to be loaded by this dts, so I was
wondering how I could do this.

I programmed a separate DTS that has an activex script that runs in a
loop: it gets a file, renames it and runs the dts package (DTS1).

I thought this would work but when I call this line that runs the DTS
package:

oPkg.LoadFromSQLServer
msDTSServer,msDTSUser,msDTSPwd,DTSSQLStgFlag_Defau lt,"","","",DTS1

It does not wait for (DTS1) it to finish before continuing with the
loop. So what ends up happening is DTS1 gets called again and again.
I need it to wait for DTS1 to finish before proceeding.

Does anyone know how to deal with this?

Thanks in advance.
Clem

also if anyone has any other ways to do this, it would be much
appreciated.




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

Default Re: waiting for task to end - 07-11-2005 , 04:33 PM



Allen Are you still following up with my ASP.NET and C# post?:-) or you gave
it up?

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

Quote:
You want to loop and pick up files?

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--



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


clemlau (AT) yahoo (DOT) com> wrote in message
news:1121115359.043927.202990 (AT) g47g2000cwa (DOT) googlegroups.com...
Hello,

I have a dts package (DTS1) that is fixed to process a text file with a
specific name and load it into my database.

I have several files that need to be loaded by this dts, so I was
wondering how I could do this.

I programmed a separate DTS that has an activex script that runs in a
loop: it gets a file, renames it and runs the dts package (DTS1).

I thought this would work but when I call this line that runs the DTS
package:

oPkg.LoadFromSQLServer
msDTSServer,msDTSUser,msDTSPwd,DTSSQLStgFlag_Defau lt,"","","",DTS1

It does not wait for (DTS1) it to finish before continuing with the
loop. So what ends up happening is DTS1 gets called again and again.
I need it to wait for DTS1 to finish before proceeding.

Does anyone know how to deal with this?

Thanks in advance.
Clem

also if anyone has any other ways to do this, it would be much
appreciated.






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

Default Re: waiting for task to end - 07-11-2005 , 04:46 PM



I am a bit busy at the mo but can you ping me privately with all I need so I
can try to duplicate your problem?

--



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" <JT (AT) nospam (DOT) com> wrote

Quote:
Allen Are you still following up with my ASP.NET and C# post?:-) or you
gave it up?

Thanks
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OMnjL8lhFHA.3340 (AT) tk2msftngp13 (DOT) phx.gbl...
You want to loop and pick up files?

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--



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


clemlau (AT) yahoo (DOT) com> wrote in message
news:1121115359.043927.202990 (AT) g47g2000cwa (DOT) googlegroups.com...
Hello,

I have a dts package (DTS1) that is fixed to process a text file with a
specific name and load it into my database.

I have several files that need to be loaded by this dts, so I was
wondering how I could do this.

I programmed a separate DTS that has an activex script that runs in a
loop: it gets a file, renames it and runs the dts package (DTS1).

I thought this would work but when I call this line that runs the DTS
package:

oPkg.LoadFromSQLServer
msDTSServer,msDTSUser,msDTSPwd,DTSSQLStgFlag_Defau lt,"","","",DTS1

It does not wait for (DTS1) it to finish before continuing with the
loop. So what ends up happening is DTS1 gets called again and again.
I need it to wait for DTS1 to finish before proceeding.

Does anyone know how to deal with this?

Thanks in advance.
Clem

also if anyone has any other ways to do this, it would be much
appreciated.








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

Default Re: waiting for task to end - 07-11-2005 , 06:03 PM



I sent the code to your email.

I so appreciate your help
Thanks a million
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I am a bit busy at the mo but can you ping me privately with all I need so
I can try to duplicate your problem?

--



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" <JT (AT) nospam (DOT) com> wrote in message
news:eIJWqAmhFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Allen Are you still following up with my ASP.NET and C# post?:-) or you
gave it up?

Thanks
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OMnjL8lhFHA.3340 (AT) tk2msftngp13 (DOT) phx.gbl...
You want to loop and pick up files?

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--



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


clemlau (AT) yahoo (DOT) com> wrote in message
news:1121115359.043927.202990 (AT) g47g2000cwa (DOT) googlegroups.com...
Hello,

I have a dts package (DTS1) that is fixed to process a text file with a
specific name and load it into my database.

I have several files that need to be loaded by this dts, so I was
wondering how I could do this.

I programmed a separate DTS that has an activex script that runs in a
loop: it gets a file, renames it and runs the dts package (DTS1).

I thought this would work but when I call this line that runs the DTS
package:

oPkg.LoadFromSQLServer
msDTSServer,msDTSUser,msDTSPwd,DTSSQLStgFlag_Defau lt,"","","",DTS1

It does not wait for (DTS1) it to finish before continuing with the
loop. So what ends up happening is DTS1 gets called again and again.
I need it to wait for DTS1 to finish before proceeding.

Does anyone know how to deal with this?

Thanks in advance.
Clem

also if anyone has any other ways to do this, it would be much
appreciated.










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.