House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Query Muliple Databases

Author:
Andy Matthews
09/12/2008 04:17 PM

I'm going out on a limb here and say that you're going to be out of luck. You CAN query between multiple databases, as long as you've prepended the column name with the table name, and db name. But querying across two seperate softwares? Doubt it. SELECT u.id, u.name, c.category FROM db1.users u INNER JOIN db2.categories c   ON u.fkCategories = c.id That works just fine, but I doubt you can hook between two competing products. Have you considered a nightly import from the DB2 database into your SQL server database? andy Hi, I need to write a query that selects data from two different databases, which are a MS SQL Server and DB2. The SQL Server has all the fields I need but one field that is in the DB2 database.  I need to join between the two databases, but I have never wrote a query that uses two different data sources. Any help would be appreciated. Thanks Tim


Search cf-talk

March 18, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31