if I have table data in database A and I want to relate it to table data in database B, how do I design the query in the jrdc2 config file and the parameters that I create in the client application?
Sample Query:
SELECT a.field1, a.field2, a.field3
FROM database_A.table A, database_B.table B
WHERE a.field1 = b.field1;
if I have table data in database A and I want to relate it to table data in database B, how do I design the query in the jrdc2 config file and the parameters that I create in the client application?
Sample Query:
SELECT a.field1, a.field2, a.field3
FROM database_A.table A, database_B.table B
WHERE a.field1 = b.field1;
if I have table data in database A and I want to relate it to table data in database B, how do I design the query in the jrdc2 config file and the parameters that I create in the client application?
Sample Query:
SELECT a.field1, a.field2, a.field3
FROM database_A.table A, database_B.table B
WHERE a.field1 = b.field1;
if they are not in the same instance it does not work i guess.
Same is true for any MySQL-Server where the Databases are on the same machine (and have the rights to access the databases).
Just for info... You can basically link as linked server also Ms sql with MySql server over OLE ODBC database. If someone will need instruction, I can help... When is mysql as linked server accessible from ms sql server it’s easy to run query from ms sql to my sql database... Like this:
Example:
SELECT *
FROM openquery
(
MYSQL,
'
SELECT *
FROM [mysqlDb].[myTable]
'
)