Cross Database Server Query in Eclipse SQL Explorer

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

Cross Database Server Query in Eclipse SQL Explorer

Postby rafig » Mon Oct 15, 2012 7:26 pm

Hi,
I have a link to an Oracle database as one server in my solution.
Another database server is using MS SQL Server.
I need to do an update statement using results from the Oracle back-end into the SQL Server tables.
I can't seem to work out the syntax for doing a cross database server join
I need to do an UPDATE, but was first trying to do a SELECT along the lines of
Code: Select all
select supplier_product_code,description from "rnoh_estock"."dbo"."es_product"
where es_product.supplier_product_code = "RNOHPOLVESQL"."PURCHASE_LINES"."pl_supplier_product_code" ;


(my Oracle db server is called 'efin', but in database explorer of SQL Explorer it is 'RNOHPOLVESQL' and my SQL server is called 'rnoh_estock' if that helps...)

Can anyone advise on how I might be able to do it??
Thanks

Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 708
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Cross Database Server Query in Eclipse SQL Explorer

Postby john.allen » Mon Oct 15, 2012 11:16 pm

Hi Rafi,

You can't do cross vendor database joins in a query. Lots of other ways to accomplish what you want to do in Servoy but not directly in a query. For instance you can loop through your foundset of records you want to use in Oracle and then push/update whatever it is you want from them into your SQL Server database. I've done that many times here between SQL Server and Oracle.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Cross Database Server Query in Eclipse SQL Explorer

Postby rafig » Tue Oct 16, 2012 6:28 pm

Hi John,
thanks for the reply, I thought that might be the only way, so that is what I am going to do.

Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 708
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 7 guests