Ask a Question related to Macromedia ColdFusion, Design and Development.
-
_aggregate #1
Running query with 2 datasources
I have two databases that I need to pull data from. One database is
application data the other has user info. The application data base has a list
of userID that have access to applications. The other one has a user table
with userID, first name & Last name. I'm trying to list all the users that has
access to application. I can do the userID but I need to display the Name of
the user.
This displays the userID
<cfquery name="qry_ListUserToApp" datasource="Ai_database">
SELECT
CA.ID,
CA.ApplicationID,
CA.Name,
CA.Path,
CA.Path1,
AU.UserID
FROM
dbo.CMS_Applications CA,
dbo.AI_UserPermission AU
WHERE
(AU.ApplicationID = CA.ApplicationID)
AND
('#url.AppID#' = CA.ApplicationID)
</cfquery>
This shows users Name
<cfquery name="qry_ListICUsers" datasource="SQLSecurity">
SELECT FirstName,LastName, username, UserID
FROM Intranetconnections.UserProfiles
Order by LastName
</cfquery>
How do I combine the two?
Any help will be great. I have a deadline of tomorrow Thanks in advanced
_aggregate Guest
-
Query of Queries - Combining Two Datasources
Problem: Query needs to combine fields from one datasource with those of another, matching on a common ID. Example: <CFQUERY... -
Running a query with multiple lists
Any help would be so appreciated, I have beat my head against the wall on this one and have scoured the web trying to find an answer. I am trying... -
How do I Query mulitple datasources?
Here is what I have and what I need to do... 1. I have multiple dabases with financial transactions. All are based on the same table structure. ... -
running a query file of 42MB
I'm trying to run query generated by an import script. postgresql 8 onder windows XP. the file is about 42MB, i've opened this file by pgAdminIII... -
Running query on web datset
Hi Is it possible to do run a select query on a dataset from a web method using a dataadapter? A code example would be great. If not, how can we... -
mxstu #2
Re: Running query with 2 datasources
What database are you using? Are these databases on the same server? Can you
just execute a query across the databases? For example, in SQL Server, with
the appropriate permissions:
SELECT t1.Column1, t2.Column2
FROM database1.dbo.SomeTable t1, database2.dbo.SomeOtherTable t2
......
mxstu Guest
-
mxstu #3
Re: Running query with 2 datasources
There are probably a number of posts on this topic. [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=1008384[/url] offers a few possibilities.
mxstu Guest



Reply With Quote

