![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a database sitting on SQL Server 2000. Within the database, I have a list of specific customers and their 'keys'. What I am wanting to do is |
|
For example, here would be the example SQL passed to Oracle: SELECT CUST_KEY, CUST_NBR, CUST NAME FROM CUST_TABLE WHERE CUST_KEY IN (SELECT CUST_KEY FROM MASTR_CUST_LIST WHERE CUST_ACTIVE = 'YES') The SQL Statement in the Sub-Query is from SQL Server, but the rest gets passed to Oracle. I have read articles like http://www.sqldts.com/default.aspx?205,1 but unfortunately does not provide me with a clear direction of how to implement |
|
Any suggestions/help would be greatly appreciated. Regards, Diablo. |
#3
| |||
| |||
|
|
Allan, Could you elaborate in more detail on the latter example you noted? ----- Allan Mitchell wrote: ----- One very quick way would be to use a linked server of Oracle to SQL Server. Use OPENQUERY to do your SELECT from Oracle. Another way would be to pump the "Keys" table to Oracle and then do the join there retrieving the data to wherever you want. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Diablo" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:EE665211-0CC2-4CA2-8151-B3F083F9FBE5 (AT) microsoft (DOT) com... I have a database sitting on SQL Server 2000. Within the database, I have a list of specific customers and their 'keys'. What I am wanting to do is get additional information (Data) from an Oracle Database, and am wanting to pass in the 'keys' from SQL Server to Oracle to retrieve the data. For example, here would be the example SQL passed to Oracle: SELECT CUST_KEY, CUST_NBR, CUST NAME FROM CUST_TABLE WHERE CUST_KEY IN (SELECT CUST_KEY FROM MASTR_CUST_LIST WHERE CUST_ACTIVE = 'YES') The SQL Statement in the Sub-Query is from SQL Server, but the rest gets passed to Oracle. I have read articles like http://www.sqldts.com/default.aspx?205,1 but unfortunately does not provide me with a clear direction of how to implement this in a SQL Server DTS Package. Any suggestions/help would be greatly appreciated. Regards, Diablo. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Allan, the problem I have is that the Oracle Database is our Data Warehouse (Data Mart), and having a table added would not be justifiable. |
|
Is there not an easy way of 'SELECTing' the customers (Keys) from SQL Server, and pass those Customer Keys to Oracle within the DTS Package? Thanks for your time. |
![]() |
| Thread Tools | |
| Display Modes | |
| |