dbTalk Databases Forums  

On success not working

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


Discuss On success not working in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andre
 
Posts: n/a

Default On success not working - 03-28-2006 , 07:19 PM






I have a DTS package that, in a simplified version, does this:

- step 1. script out indexes on tables to a text file
- step 2. truncates the tables
- step 3. drops the table's indexes
- step 4. transfers data, using the Transform Data Task. This step has one
"source" connection and one "destination" connection. I transfer 6 tables
from the source to the destination.

All steps are dependant on the previous step completing successfully.
However, what I see happening is this: step 1 finishes, step 2 starts, and 1
of the 6 tables in step 4 starts, then the next... I want all 6 tables to
wait for step 3 to finish before they start transferring, but they don't.
Why not? Is there an easy way to make this happen? I'm tempted to put all
my transform data tasks into another package and execute that package from
my main package. At least that way I'll know they are executing when they
should.

On a related but separate note. What is the fastest and best way to
transfer my tables; with one source/destination for all 6 tables, or with
six source/destinations - one for each table? And why?

Thanks, Andre



Reply With Quote
  #2  
Old   
Satya SKJ
 
Posts: n/a

Default RE: On success not working - 03-29-2006 , 08:17 AM






The steps you've defined should work and you can define the import process on
a seperate DTS package and then call this package from source package to
complete the process.

BTW what is the rowcount involved in the import and how many of them have
indexes?
--
-----------------
Satya SKJ
Visit http://www.sql-server-performance.com for tips and articles on
Performance topic.


"Andre" wrote:

Quote:
I have a DTS package that, in a simplified version, does this:

- step 1. script out indexes on tables to a text file
- step 2. truncates the tables
- step 3. drops the table's indexes
- step 4. transfers data, using the Transform Data Task. This step has one
"source" connection and one "destination" connection. I transfer 6 tables
from the source to the destination.

All steps are dependant on the previous step completing successfully.
However, what I see happening is this: step 1 finishes, step 2 starts, and 1
of the 6 tables in step 4 starts, then the next... I want all 6 tables to
wait for step 3 to finish before they start transferring, but they don't.
Why not? Is there an easy way to make this happen? I'm tempted to put all
my transform data tasks into another package and execute that package from
my main package. At least that way I'll know they are executing when they
should.

On a related but separate note. What is the fastest and best way to
transfer my tables; with one source/destination for all 6 tables, or with
six source/destinations - one for each table? And why?

Thanks, Andre




Reply With Quote
  #3  
Old   
Andre
 
Posts: n/a

Default Re: On success not working - 03-29-2006 , 11:28 AM



I have 5 tables that I drop the indexes/PK on. The number of rows are: 25
million, 1 mil, 4 mil, 2.5 mil and 2.5 mil. I have a few other tables that
I import that have less than 500k records, some as low as 60 records.

I'm interested to know your train of thought in this question. Do you have
some suggestions for the import?

Andre



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.