dbTalk Databases Forums  

How to use UPDATE in DTS ?

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


Discuss How to use UPDATE in DTS ? in the microsoft.public.sqlserver.dts forum.



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

Default How to use UPDATE in DTS ? - 07-14-2005 , 09:07 PM






Hi,

I have to get some data in my Sql Server database and update one another
table in my Oracle database with these data (using DTS).

1) What is the best Task should I use to build the package in DTS ?
2) I have the fields to avoid the relationship between those database, but I
don´t know how to make these relation in DTS

I tried to use DATA DRIVEN QUERY TASK but I didn't have success...I got lost
when I had to make the relationship...

Can someone help me ?
tks
Ed



Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: How to use UPDATE in DTS ? - 07-14-2005 , 09:40 PM






the DDQ is a good option.

you have to map the source columns to destination columns and , in an
ActiveX transformation between (at least) 1 source column and 1 destination
column set the return value to "update"

main = DTSTransformStat_UpdateQuery

then , in the queries, select the "update" option and type your Update SQL
command like
update destinationtable
set column1 = ?, column2 = ?, column3 = ?, ...
where keycolumn = ?

and finally, map each parameter to the related column. You'll see "parameter
1", "parameter 2"... in the same order has your ? characters.

In the BOL of SQL Server look at this section : "
Data Driven Query Example: Changing Customer Accounts "
there is a complete sample.

"Ed" <etroqui (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I have to get some data in my Sql Server database and update one another
table in my Oracle database with these data (using DTS).

1) What is the best Task should I use to build the package in DTS ?
2) I have the fields to avoid the relationship between those database, but
I
don´t know how to make these relation in DTS

I tried to use DATA DRIVEN QUERY TASK but I didn't have success...I got
lost
when I had to make the relationship...

Can someone help me ?
tks
Ed





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

Default Re: How to use UPDATE in DTS ? - 07-15-2005 , 12:14 AM



The DDQ Task is IMHO slow and you will be slow enough coverting from SQL
Server to Oracle in any event so what i would personally do is

Export to file
FTP the file over to Oracle
SQL*Loader to get the file in
Issue a series of Update statements on Oracle.

This can still all be done through DTS.

OR

DataPump to Oracle
Update statements after that.

--



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


"Ed" <etroqui (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I have to get some data in my Sql Server database and update one another
table in my Oracle database with these data (using DTS).

1) What is the best Task should I use to build the package in DTS ?
2) I have the fields to avoid the relationship between those database, but
I
don´t know how to make these relation in DTS

I tried to use DATA DRIVEN QUERY TASK but I didn't have success...I got
lost
when I had to make the relationship...

Can someone help me ?
tks
Ed





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.