dbTalk Databases Forums  

Help with openrowset in task

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


Discuss Help with openrowset in task in the microsoft.public.sqlserver.dts forum.



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

Default Help with openrowset in task - 07-27-2006 , 01:59 PM






Hi. Here's what I need to do in a DTS package and don't know how: Insert all
the values from an Oracle view into a SQL Server 2000 table where the value
from the source doesn't exist in one of the columns of the destination
table. Thanks.




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

Default Re: Help with openrowset in task - 07-27-2006 , 02:02 PM






Two Source adapters, one SQL Server and one Oracle. Use a Merge Join with a
LEFT OUTER JOIN to determine the rows that are in one set and not the other.

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote

Quote:
Hi. Here's what I need to do in a DTS package and don't know how: Insert
all the values from an Oracle view into a SQL Server 2000 table where the
value from the source doesn't exist in one of the columns of the
destination table. Thanks.






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

Default Re: Help with openrowset in task - 07-27-2006 , 02:13 PM



Thanks, Mitchell. I've got the source adapters in my SQL Server 2000
package. Where do I declare the LEFT OUTER JOIN? On the data pump?

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

Quote:
Two Source adapters, one SQL Server and one Oracle. Use a Merge Join with
a LEFT OUTER JOIN to determine the rows that are in one set and not the
other.

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote in message
news:eyoC66asGHA.3832 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Hi. Here's what I need to do in a DTS package and don't know how: Insert
all the values from an Oracle view into a SQL Server 2000 table where the
value from the source doesn't exist in one of the columns of the
destination table. Thanks.








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

Default Re: Help with openrowset in task - 07-27-2006 , 02:48 PM



It is in the Merge Join Component itself in a little dropdown at the top

BTW you will need sorted inputs to this component (HINT: Do this on the
Source Adapeter and flag the outputs as sorted)

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote

Quote:
Thanks, Mitchell. I've got the source adapters in my SQL Server 2000
package. Where do I declare the LEFT OUTER JOIN? On the data pump?

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uE1n08asGHA.4264 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Two Source adapters, one SQL Server and one Oracle. Use a Merge Join
with a LEFT OUTER JOIN to determine the rows that are in one set and not
the other.

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote in message
news:eyoC66asGHA.3832 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Hi. Here's what I need to do in a DTS package and don't know how: Insert
all the values from an Oracle view into a SQL Server 2000 table where
the value from the source doesn't exist in one of the columns of the
destination table. Thanks.










Reply With Quote
  #5  
Old   
dw
 
Posts: n/a

Default Re: Help with openrowset in task - 07-27-2006 , 03:12 PM



I think you're referring to SQL 2005 and not 2000. The version I'm using is
SQL 2000 and it doesn't have any such component "Merge Join". I'll have to
figure some other solution.

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

Quote:
It is in the Merge Join Component itself in a little dropdown at the top

BTW you will need sorted inputs to this component (HINT: Do this on the
Source Adapeter and flag the outputs as sorted)

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote in message
news:%23EZhADbsGHA.1224 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Thanks, Mitchell. I've got the source adapters in my SQL Server 2000
package. Where do I declare the LEFT OUTER JOIN? On the data pump?

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uE1n08asGHA.4264 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Two Source adapters, one SQL Server and one Oracle. Use a Merge Join
with a LEFT OUTER JOIN to determine the rows that are in one set and not
the other.

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"dw" <cougarmana_NOSPAM_ (AT) uncw (DOT) edu> wrote in message
news:eyoC66asGHA.3832 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Hi. Here's what I need to do in a DTS package and don't know how:
Insert all the values from an Oracle view into a SQL Server 2000 table
where the value from the source doesn't exist in one of the columns of
the destination table. Thanks.












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.