Mixing RecordSets
Results 1 to 2 of 2

Thread: Mixing RecordSets

  1. #1
    Registered User FooL's Avatar
    Join Date
    Nov 2000
    Location
    Uter
    Posts
    280

    Mixing RecordSets

    I'm using .asp pages to act as a front end to a MS-SQL server. I have the following problem:

    I need to JOIN two tables from different databases on the server. I've got it down to two recordsets, for instance, prjRst (and) crsRst. How do I treat those recordsets as tables such that I can do an INNER JOIN on the recordsets in order to end up with one *master* recordset?

    I do have a colum with similar information in each table, but the colums are named differently. Lets say that prj.prj_id contains the same information as crs.crs_id. I'd like to JOIN on that column if it's possible.

    Any help would be greatly appreciated.
    if(post.eof()){SigBox.setText("Have A Day.");}

  2. #2
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    While the tables live in seperate databases I don't think you can do any kind of 'Join' operation ... don't tables to be 'joined' need to 'live' in the same table space ?

    It might be version specific .... 'cos have a look at this Query multiple databases with one sql statement

    However I'm none too sure whether this just happens to be two seperate Databases in the same table space, this guy is talking about Oracle, which can connect to multiple databases, but as far as Oracle is concerned ... all accessable databases live in its table space ... MS -SQL is different ! (Huh? Aren't all SQL implementations the same ? Nope ... not with 'external' datasources.... ! ).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •