SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



Compare data in SQL Server table to data in an Oracle linked server table Expand / Collapse
Author
Message
Posted Wednesday, December 10, 2008 11:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 16, 2009 11:12 AM
Points: 5, Visits: 34
I am new to this site so hopefully I am putting this in the appropriate place.
My question is this:
I have a table in sql server that has a varchar field with a corresponding integer field. I need to compare the value in the varchar field to a value in a varchar field in an Oracle linked server database table. If the fields match I need to return the corresponding value that is in the integer field and add it to a sql server table. Thanks in advance to any help on this.
Post #617607
Posted Monday, December 15, 2008 9:53 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 10:24 AM
Points: 6,301, Visits: 5,577
How many rows are we talking about? I'd recommend bringing the data across from Oracle to a temp table in SQL Server and then do the comparison with a left join on the temp table.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Post #619749
Posted Monday, December 15, 2008 10:54 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, July 02, 2009 11:29 AM
Points: 316, Visits: 569
I would think another option might be the use of SSIS. Create two connection managers (one sql and one oracle). Then you can bring in the data sets and lookup/merge/etc using existing components or script components.
Post #619817
« Prev Topic | Next Topic »


Permissions Expand / Collapse