dbTalk Databases Forums  

SQL Server To Oracle

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


Discuss SQL Server To Oracle in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
biano.brito@gmail.com
 
Posts: n/a

Default SQL Server To Oracle - 09-29-2006 , 11:53 AM






I need to update a table in the oracle with data that came from the SQL
Server but I cant delete all the lines in the oracle I need to check if
the line doenst exist in the destination table and then append this
line.

I know how to do it using transact-sql when the source table and the
destination table is in the same place but how to do it when source is
SQL Server and the destionation is Oracle.

Which object have I to use? Data Transformation Task? Data Driven Query
Task.

Please help me!

Thanks,
Fabiano


Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: SQL Server To Oracle - 09-29-2006 , 01:18 PM






Quicker to use SQL, and you say you already know how to do this. You can
still use SQL against Oracle and SQL Server simultaneously by using linked
servers. You can even perform a join query between a SQL Server table and an
Oracle table. Look up "linked servers" in Books Online.

e.g.
INSERT INTO OracleServer.OracleDB.Emp.Scott
SELECT * FROM MySQLServerTable WHERE ID NOT IN (SELECT EmpID FROM
OracleServer.OracleDB.Emp.Scott)

Hope this helps.

Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email alias: charles
email domain: kangai.demon.co.uk




"biano.brito (AT) gmail (DOT) com" wrote:

Quote:
I need to update a table in the oracle with data that came from the SQL
Server but I cant delete all the lines in the oracle I need to check if
the line doenst exist in the destination table and then append this
line.

I know how to do it using transact-sql when the source table and the
destination table is in the same place but how to do it when source is
SQL Server and the destionation is Oracle.

Which object have I to use? Data Transformation Task? Data Driven Query
Task.

Please help me!

Thanks,
Fabiano



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

Default Re: SQL Server To Oracle - 09-29-2006 , 03:19 PM



Thank you Charles, good idea! I didnt try yet but I'm sure that this is
the way.

Thank again


Charles Kangai escreveu:

Quote:
Quicker to use SQL, and you say you already know how to do this. You can
still use SQL against Oracle and SQL Server simultaneously by using linked
servers. You can even perform a join query between a SQL Server table and an
Oracle table. Look up "linked servers" in Books Online.

e.g.
INSERT INTO OracleServer.OracleDB.Emp.Scott
SELECT * FROM MySQLServerTable WHERE ID NOT IN (SELECT EmpID FROM
OracleServer.OracleDB.Emp.Scott)

Hope this helps.

Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email alias: charles
email domain: kangai.demon.co.uk




"biano.brito (AT) gmail (DOT) com" wrote:

I need to update a table in the oracle with data that came from the SQL
Server but I cant delete all the lines in the oracle I need to check if
the line doenst exist in the destination table and then append this
line.

I know how to do it using transact-sql when the source table and the
destination table is in the same place but how to do it when source is
SQL Server and the destionation is Oracle.

Which object have I to use? Data Transformation Task? Data Driven Query
Task.

Please help me!

Thanks,
Fabiano




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.