dbTalk Databases Forums  

DTS help

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


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



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

Default DTS help - 12-03-2003 , 11:26 PM






Hi All


I've the following task
Need to copy data from ServerA and from 5 tables t
another ServerB at regular intervals or on demand. W
need to transfer based on some condition
Both are SQL Servers

The data collected from ServerA has to go to
different tables in ServerB
There are some join keys on ServerA (table joins)

This task has been accomplished using a store
procedure
But I'm exploring the possibility of doing it thr
DTS


How can the following tasks can be accomplished usin
DTS

1) I need to handle errors at each insertion into the destination
tables. How can I do this

2) How can I handle Cursor operations using DTS

3) Before inserting into the destination tables,
need to verify for duplicates. If record alread
exists, I need to insert in another table and leave i
for manual verification. How can I handle this

4) Once the inserts are successfully done, I need t
update another table with 'status updated'

Can anybody explain how the above tasks can b
accomplished using DTS, in particular cursor op

Thanks much for any inputs, ideas etc.

Siva.

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

Default Re: DTS help - 12-04-2003 , 12:56 AM






Wow a lot of questions

1. Error handing is not great in DTS 2000 but you do have workflow which
allows you to branch off if you error in a task. In 2000 you also have
(Last tab Data Pump) the opportunity to log those erroneous rows to a text
file for looking at later.

2. Find another way of doing it. Why do you need a cursor? Cursors are in
a lot of cases avoidable.

3. You could have ServerB as a linked server to ServerA. You can then
compare key values to check for duplicates.

4. An ExecuteSQL task will take care of this



--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Siva Gort" <siva116 (AT) yahoo (DOT) com> wrote

Quote:
Hi All,


I've the following task:
Need to copy data from ServerA and from 5 tables to
another ServerB at regular intervals or on demand. We
need to transfer based on some condition.
Both are SQL Servers.

The data collected from ServerA has to go to 3
different tables in ServerB.
There are some join keys on ServerA (table joins).

This task has been accomplished using a stored
procedure.
But I'm exploring the possibility of doing it thru
DTS.


How can the following tasks can be accomplished using
DTS?

1) I need to handle errors at each insertion into the destination
tables. How can I do this?

2) How can I handle Cursor operations using DTS?

3) Before inserting into the destination tables, I
need to verify for duplicates. If record already
exists, I need to insert in another table and leave it
for manual verification. How can I handle this?

4) Once the inserts are successfully done, I need to
update another table with 'status updated'.

Can anybody explain how the above tasks can be
accomplished using DTS, in particular cursor op?

Thanks much for any inputs, ideas etc..

Siva.



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.