dbTalk Databases Forums  

DTS advice

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


Discuss DTS advice in the microsoft.public.sqlserver.dts forum.



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

Default DTS advice - 12-20-2004 , 05:09 AM






Hi All

I wonder if you could give some help and advice on the best way of
going about the following.

I want to transform and copy/import most of the data from an existing
database to an new database on a regular basis(on the same SQL 2000
server).

I have experimented and successfully set this up in DTS. The problem I
have is that the ‘datapump', imports ALL the data all of the time so I
end up with lots of repeated entries for the same data. I need to be
able to transfer only the changes into the new data tables (once the
initial import is completed) on a regular basis (perhaps half a dozen
times a day).

I have set up and tried the tutorial on the ‘sqldts' site. Must admit
that I did not fully understand the last parts of this tutorial using
global variables!.

Are look ups the best approach? Or can anyone suggest a better
alternative


Help and advice appreciated.

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

Default Re: DTS advice - 12-20-2004 , 12:47 PM






Lookups may be the approach but they may kill you for performance.
Can you identify changed data?
Can you use a linked server and compare PK values?

If you cannot identify changed rows and have no way of trapping the changes
(Triggers) then you are in a pickle. Whilst comparison of PK values on each
side of the data divide will tell you INSERT and DELETE activity it will not
tell you about UPDATEs



--



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


"Mark V" <m.vyse (AT) ntlworld (DOT) com> wrote

Quote:
Hi All

I wonder if you could give some help and advice on the best way of
going about the following.

I want to transform and copy/import most of the data from an existing
database to an new database on a regular basis(on the same SQL 2000
server).

I have experimented and successfully set this up in DTS. The problem I
have is that the 'datapump', imports ALL the data all of the time so I
end up with lots of repeated entries for the same data. I need to be
able to transfer only the changes into the new data tables (once the
initial import is completed) on a regular basis (perhaps half a dozen
times a day).

I have set up and tried the tutorial on the 'sqldts' site. Must admit
that I did not fully understand the last parts of this tutorial using
global variables!.

Are look ups the best approach? Or can anyone suggest a better
alternative


Help and advice appreciated.



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

Default Re: DTS advice - 12-21-2004 , 11:09 AM



If the two databases are on the same SQL server (even if they are not, as
long as we can establish a linked server), I would avoid using DTS to do the
actual data transfer. I would create stored procedure(s) to move the data -
code will be maintainable and easily modifiable. The performance will also be
much better than DTS. Use DTS to schedule the running of the stored
procedure.

Rangarajan
*********


"Allan Mitchell" wrote:

Quote:
Lookups may be the approach but they may kill you for performance.
Can you identify changed data?
Can you use a linked server and compare PK values?

If you cannot identify changed rows and have no way of trapping the changes
(Triggers) then you are in a pickle. Whilst comparison of PK values on each
side of the data divide will tell you INSERT and DELETE activity it will not
tell you about UPDATEs



--



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


"Mark V" <m.vyse (AT) ntlworld (DOT) com> wrote in message
news:e2a08f49.0412200309.8c63263 (AT) posting (DOT) google.com...
Hi All

I wonder if you could give some help and advice on the best way of
going about the following.

I want to transform and copy/import most of the data from an existing
database to an new database on a regular basis(on the same SQL 2000
server).

I have experimented and successfully set this up in DTS. The problem I
have is that the 'datapump', imports ALL the data all of the time so I
end up with lots of repeated entries for the same data. I need to be
able to transfer only the changes into the new data tables (once the
initial import is completed) on a regular basis (perhaps half a dozen
times a day).

I have set up and tried the tutorial on the 'sqldts' site. Must admit
that I did not fully understand the last parts of this tutorial using
global variables!.

Are look ups the best approach? Or can anyone suggest a better
alternative


Help and advice appreciated.




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

Default Re: DTS advice - 12-21-2004 , 12:43 PM



In one sentence you say do not use DTS to do the data transfer and in the
next you say use DTS to do the scheduling

If you are going to use a stored proc and this is the only piece of work
then why even bother with DTS to do the scheduling. ++ DTS is not a
scheduler. DTS still has to be invoked by Agent and in this case you may as
well put the proc in a Job step.



--



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


"Rangarajan" <Rangarajan (AT) discussions (DOT) microsoft.com> wrote

Quote:
If the two databases are on the same SQL server (even if they are not, as
long as we can establish a linked server), I would avoid using DTS to do
the
actual data transfer. I would create stored procedure(s) to move the
data -
code will be maintainable and easily modifiable. The performance will also
be
much better than DTS. Use DTS to schedule the running of the stored
procedure.

Rangarajan
*********


"Allan Mitchell" wrote:

Lookups may be the approach but they may kill you for performance.
Can you identify changed data?
Can you use a linked server and compare PK values?

If you cannot identify changed rows and have no way of trapping the
changes
(Triggers) then you are in a pickle. Whilst comparison of PK values on
each
side of the data divide will tell you INSERT and DELETE activity it will
not
tell you about UPDATEs



--



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


"Mark V" <m.vyse (AT) ntlworld (DOT) com> wrote in message
news:e2a08f49.0412200309.8c63263 (AT) posting (DOT) google.com...
Hi All

I wonder if you could give some help and advice on the best way of
going about the following.

I want to transform and copy/import most of the data from an existing
database to an new database on a regular basis(on the same SQL 2000
server).

I have experimented and successfully set this up in DTS. The problem I
have is that the 'datapump', imports ALL the data all of the time so I
end up with lots of repeated entries for the same data. I need to be
able to transfer only the changes into the new data tables (once the
initial import is completed) on a regular basis (perhaps half a dozen
times a day).

I have set up and tried the tutorial on the 'sqldts' site. Must admit
that I did not fully understand the last parts of this tutorial using
global variables!.

Are look ups the best approach? Or can anyone suggest a better
alternative


Help and advice appreciated.






Reply With Quote
  #5  
Old   
Rangarajan Suresh
 
Posts: n/a

Default Re: DTS advice - 12-21-2004 , 08:05 PM



I stand corrected. I was focusing on "not using DTS" to do the data transfer
in an all-SQL environment. You are right - the stored proc is to be scheduled
as a job step in SQL Agent.

Rangarajan
*********

"Allan Mitchell" wrote:

Quote:
In one sentence you say do not use DTS to do the data transfer and in the
next you say use DTS to do the scheduling

If you are going to use a stored proc and this is the only piece of work
then why even bother with DTS to do the scheduling. ++ DTS is not a
scheduler. DTS still has to be invoked by Agent and in this case you may as
well put the proc in a Job step.



--



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


"Rangarajan" <Rangarajan (AT) discussions (DOT) microsoft.com> wrote in message
news:9C1C2B4C-C526-4EE0-8170-C827906395FB (AT) microsoft (DOT) com...
If the two databases are on the same SQL server (even if they are not, as
long as we can establish a linked server), I would avoid using DTS to do
the
actual data transfer. I would create stored procedure(s) to move the
data -
code will be maintainable and easily modifiable. The performance will also
be
much better than DTS. Use DTS to schedule the running of the stored
procedure.

Rangarajan
*********


"Allan Mitchell" wrote:

Lookups may be the approach but they may kill you for performance.
Can you identify changed data?
Can you use a linked server and compare PK values?

If you cannot identify changed rows and have no way of trapping the
changes
(Triggers) then you are in a pickle. Whilst comparison of PK values on
each
side of the data divide will tell you INSERT and DELETE activity it will
not
tell you about UPDATEs



--



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


"Mark V" <m.vyse (AT) ntlworld (DOT) com> wrote in message
news:e2a08f49.0412200309.8c63263 (AT) posting (DOT) google.com...
Hi All

I wonder if you could give some help and advice on the best way of
going about the following.

I want to transform and copy/import most of the data from an existing
database to an new database on a regular basis(on the same SQL 2000
server).

I have experimented and successfully set this up in DTS. The problem I
have is that the 'datapump', imports ALL the data all of the time so I
end up with lots of repeated entries for the same data. I need to be
able to transfer only the changes into the new data tables (once the
initial import is completed) on a regular basis (perhaps half a dozen
times a day).

I have set up and tried the tutorial on the 'sqldts' site. Must admit
that I did not fully understand the last parts of this tutorial using
global variables!.

Are look ups the best approach? Or can anyone suggest a better
alternative


Help and advice 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.