Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > ColdFusion > Connect to SQL ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1679 of 1695
Post > Topic >>

Connect to SQL database and Oracle database at the same time

by amy.bolden@[EMAIL PROTECTED] Aug 9, 2007 at 08:11 AM

Hi,

I have inherited a cold fusion site.  Throughout the site, it has
individual examples of where it connects to our SQL database and
individual examples of where it connects to our Oracle database.  I
now find that I need to connect to do a join on some tables in both.
For example, these statements work fine when accessing only one
database at a time:

<CFQUERY name="sqlquery" datasource="SQLdatabase">
	Select SqlField FROM mySQLtable st
	WHERE id = 1
</CFQUERY>

<cfquery name="oraclequery" datasource="Oracledatabase">
		SELECT OracleField from myOracletable ot
			WHERE id = 1
</cfquery>

I need to find some way to run a statement that accesses both as
follows:

Select SqlField, OracleField From mySQLtable st
JOIN myOracletable ot ON st.id = ot.id
WHERE id = 1

Is this possible?

Thanks,
Amy
 




 3 Posts in Topic:
Connect to SQL database and Oracle database at the same time
amy.bolden@[EMAIL PROTECT  2007-08-09 08:11:00 
Re: Connect to SQL database and Oracle database at the same time
"frank687@[EMAIL PRO  2007-08-09 19:22:23 
Re: Connect to SQL database and Oracle database at the same time
"news-west.giganews.  2007-11-08 07:13:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:34:21 CDT 2008.