How can I join two tables that belong to two different databases?

I can build a SQL query in SQL Server Management Studio, which performs a join of a table in a database with a table in another database.  I have a good 'read' name to username/password for the two databases.

How to do the join in ColdFusion?  The tag < cfquery > requires a unique data source.  I could do like two queries and through comparing, or maybe even some use dbtype = query, but it would be horribly less effective than a direct join.

I could place the SQL statement in a stored procedure, but that seems like overkill - all the necessary number of fields in the "WHERE" clause will change based on the logic of the ColdFusion program.

Does anyone know of a way to do this with < cfquery >?

How do you take in SQL Server Management Studio?  You must do something that I'm not aware, if what you're doing here does not work in a block.

The way I did in the past is just to fully qualify the names of the tables.  Server.databaseOwner.database.table know if I remember correctly.

This does not require that the database connected to the name of data source is configured to be allowed to connect to the database.

Tags: ColdFusion

Similar Questions

  • How can I define two different emails in one form of contact?

    How can I define two different emails in one form of contact?

    To enter several e-mail address with Contact form Widgets:

    1. Click on the Options icon for the selected widget, then
    2. In the Email box, enter several emails in delimiting them with a semicolon. For example:
      [email protected];[email protected]
      

    CARI

  • How can I align two different text lines in the same table in two different directions (centered on one and one on the left)?

    Hello

    I want to focus the two different text lines that are in the same table, but one on the Center and the other on the left. I put a < span > tag in the hope that he was overwhelmed the family of police .bottomsel table class properties and the. Police-family Cig84 and color but the text-align only: they are both on the left.

    Here is my source and CSS codes:

    Source:

    < table width = "600" border = "0" >

    < b >

    < class td = "bottomref" > < p > < span class = "bottomsel" > | < a href = "index.html" target = "_self" > Main < /a > | " < a href = "about.html" target = "_self" > on < /a > | " < a href = "clients.html" target = "_self" > customers < /a > | " < a href = "contact.html" target = "_self" > Contact < /a > | " </span > < br / >

    < span class = 'credits' > credits: < span class = "Cig84" > Cig84 </span > < / span > < /p > < table >

    < /tr >

    < /table >

    CSS:

    {.bottomsel}

    text-align: center;

    do-family: Georgia, "Times New Roman", Times, serif;

    }

    {.credits}

    text-align: left;

    }

    . {Cig84}

    Color: #F00;

    do-family: "Comic Sans MS", cursive;

    }

    Use tags to paragraph with CSS classes.

    CSS:

    . Center {text-align: center}

    .the {text-align: left}

    HTML:

    This text is centered

    This text is left-aligned

    Nancy O.

  • How can I add two different colors on the same object?

    Hello

    Say if I have something that I have a circle and I want the black semicircle and the other half with white. How can I do this?

    Thank you

    actually, sorry, forget something: you can fill it with a gradient that has two color stops in the same place. It is maybe a little more ordered according to what you need.

  • How can I run two different versions of Firefox, the last does not work with a site important I need to use?

    With the latest version of Firefox, I can't ' fast email ' to my students through the ANGEL of the College System. I had to uninstall and go to an earlier version. I prefer the new rev.

    A way to run two different versions. It doesn't have to be simultaneously. Seems to be a problem on the Mac and my XP systems.

    Thank you
    Kim

    You can install the portable version of Firefox 3.6.x to access Web sites that don't work with Firefox 5 +.

  • How can you tell two different cursors to move to different places?

    Sorry if this has been asked before, but I couldn't find the answer anywhere.

    As I said, I'm trying to get two different cursors to move in two different places on the same graph. I have values I want them to go, I'm not sure that work or the command to use. I'm using LabVIEW 8.6. Thanks for any help!

    WCR,

    You will need to use the property of the graph nodes to move cursors programmatically. The properties of interest are the active cursor and the cursor Position > X and the Position of the cursor > y. use the active cursor to specify (by index cursor) what slider you want to work with, and then set the X property values and, and then adjust the slider according as the active cursor and set its property values X and Y.

  • How can I join two images, one above the other?

    I have two images in jpeg format and have to join them to each other vertically. PLEASE HELP NOW! Thank you.

    File > New in the menu and choose a size of pixel height that is the sum of the height of the images pixel size.  Do identical width to the width of the wider picture.

    Do drag each image in the new file and adjust as required.

  • How can I add two different links to a banner ad?

    I have an advertising banner that cycles back between two ads and I try to put in place so that when the first announcement is in place (5 seconds or more) and the viewer clicks on it, he's going to a URL, and when it turns into second and the viewer clicks, he takes them to a different URL.

    I have attached the .fla file that I am trying to build. Thanks for any help you can provide!

    Hi dreich.

    Just you first login to your account, then click on this thread.

    option occurs...

    Saransoft

  • How can I use two different PC with Lr5.5 to manage and process my photos stored on the external drive and swap the analysis between these two computers?

    I ran two computers and would like to be able to download Lr jobs made on my laptop, my PC fixed, also used to treat other images, all stored on the same disk.

    In other words, I want to deal with may photos on both PC and have access to all analyses of one or even two computers better regardless.

    Samek.

    This was very helpful. Thank you very much

    Samek

  • How can I have two different notifications for email and texts?

    I have the audio files installed on my card, but cannot find a way to do this.  Any ideas?


  • How have you joined two end on two separate lines drawn with the pen in CC2014, tried everything tool points!

    How can I join two end drawn with the pen tool points in CC2104

    I tried and it doesn't work?

  • How can I mix two video clips where they join together in a movie?

    Hello wonderful movie spirits, decision-making

    I'm working with Adobe first 6 on a Windows 7 computer.

    How can I mix two video clips where they join together in a movie?

    I know how to place two or more video clips together in the same movie, but how can I give them a bit of a mixture of just where they join?

    I have a PDF manual and the instructions of the built-in web browser.  In the instruction manual to the "Chapter 7: layering and Compositing", he talks about the transparency of a video sequence and I understand that... but I don't want to do one or the other video clip transparent anywhere except where the two video clips are joining with maybe a bit of overlap.

    I would like to make a little blur right where the two videos are joining the middle... is it possible?

    Thank you

    Digi

    AHA that kind of mixture.

    6.5 have not used in a time loooooooong.

    It's so memory, hope I get this right.

    Together the two each other clip

    Make a hidden in Photoshop and overlay it on the two clips.

    Go to the transparency settings and the value of the top 2 video clip touches Alpha.

    Screendump to mast:

    The right side is black just for the forum, but should be transparent.

  • How can I put two pictures together so that I could make a poster, including the two photos?

    Original title: Photo

    How can I put two pictures together so that I could make a poster, including the two photos?

    Hello

    What operating system do you use?

    You can do this by using paint or Windows Photo Gallery or Windows live photo gallery. See the following articles that might help you.

    With the help of paint
    http://Windows.Microsoft.com/en-us/Windows-Vista/using-paint
    With the help of paint
    http://Windows.Microsoft.com/en-us/Windows7/using-paint
    Overview of Microsoft Paint
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/mspaint_overview.mspx?mfr=true
    Open Windows Photo Gallery
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Windows-Photo-Gallery
    Windows Live Photo Gallery
    http://Windows.Microsoft.com/en-us/Windows7/products/features/photo-gallery

  • How can I draw dynamic data that I get a hardware DAQ against each other?

    Hi all

    I am trying to acquire voltage and current data of DAQ hardware. My goal is plotted against votlagein current a continuous path. As the votlage is increased at intervals of 1 Volt, every second I want to see how the current. However, this data is dynamic and I need help find how to draw in a single chart. Any thoughts on how to draw the two different dynamic data against each other in the same graph?

    You help will be very appreciated.

    Thank you

    If I understand what you're saying, looks like you want to have the update of XY graph with each new data point (or points) acquired, but also choose to keep the previous data on the XY graph.  If that's what you're after, I build on my previous example.  For the method of use of the express VI build XY graph, you can simply double click on it and uncheck the "erase data on each call.  For the other method of construction of the dashboard cluster, you will need to add a few records to offset to maintain the previous itterations table values.  Here's the updated image:

  • How can I put two images in an image in movie maker?

    How can I put two images in a frame in moviemaker. I know they must be smaller then, how I can do it too?

    How can I put two images in a frame in moviemaker. I know they must be smaller then, how I can do it too?

    =========================================
    Try to join the pictures before you import them into Movie Maker.

    The free software IrfanView can attach photos edge to edge vertically or
    horizontally.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView
    http://www.TechSpot.com/downloads/299-IrfanView.html
    (the name of the file is: iview427_setup.exe)

    IrfanView plugins
    http://www.TechSpot.com/downloads/472-IrfanView-plugins.html
    (the name of the file is: irfanview_plugins_427_setup.exe)

    Once you have downloaded IrfanView and
    installed... Open the program and go to...

    ... Image / create the Image of the Panorama...

    Make your choice and click on the button create an Image.

    When you see the combined images displayed
    in the display... go to... File / save as...

    Choose a location...

    Choose a format...

    Give the file a new name...

    Click on... Save...

    Also, the following links may offer a few ideas:

    ShaderTFX
    http://www.rehanfx.org/shader.htm

    Pixelan
    http://Pixelan.com/mm/intro.htm

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for