select statement form mutiple data sources

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default select statement form mutiple data sources

    Hello,

    I have information in a Access data base and a SQL
    database, but i need to be able to create a select
    statment which pulls information out of both sources.

    Any help????
    Aaron Guest

  2. Similar Questions and Discussions

    1. One Form, Mutiple Inserts, Multiple Records
      I am attempting to create a form which allows multiple record inserts. This will be used to add classes by participant to a training database. The...
    2. Getting form info into a mysql select statement
      Hi, I'd like to get user input from an html form into a mysql select statement. Here's where I'm stumped: $result = mysql_query("SELECT * FROM...
    3. Mutiple conditions in an if statement
      This might seem like a silly question but how do you form an if statement involving 2 conditions within ASP (VBScript) I tried this with no luck:...
    4. Creating a table using the IXF file format for data exported using a SELECT * statement
      Hello, everyone. Which of the following is being kept in the new table? Check constraints Catalog statistics Primary key definitions
    5. Can a form have two record sources ?
      I want to have a form with an overview of data from 4 different queries. How can I have different record sources (ie different query fields) on the...
  3. #2

    Default select statement form mutiple data sources

    You should be able to link the SQL tables into your Access
    database. Then, you can select from the linked tables.

    >-----Original Message-----
    >Hello,
    >
    >I have information in a Access data base and a SQL
    >database, but i need to be able to create a select
    >statment which pulls information out of both sources.
    >
    >Any help????
    >.
    >
    John Beschler Guest

  4. #3

    Default select statement form mutiple data sources

    Well, yes...and no.

    You can not join two tables between seperate databases in
    ASP. However, there are at least a couple methods I can
    think of to accomplish this - to a degree.

    Technically a JOIN handles cases where there are
    mismatches between your key fields. Since you can not do a
    JOIN in ASP, you will have to handle the exceptions
    yourself.

    One possible method:
    Declare two arrays and use GetRows to populate each array.
    Make sure to include the key fields from each table/view
    in the appropriate array. Then, you step through your
    parent array in code and use the key to find the
    corresponding row in the child array.

    WARNING! This is not going to be easy!
    >-----Original Message-----
    >Hello,
    >
    >Lets say that I do not have not option. Is there anyway
    >to do this with code?
    >
    >
    >>-----Original Message-----
    >>You should be able to link the SQL tables into your
    >Access
    >>database. Then, you can select from the linked tables.
    >>
    >>
    >>>-----Original Message-----
    >>>Hello,
    >>>
    >>>I have information in a Access data base and a SQL
    >>>database, but i need to be able to create a select
    >>>statment which pulls information out of both sources.
    >>>
    >>>Any help????
    >>>.
    >>>
    >>.
    >>
    >.
    >
    John Beschler Guest

Posting Permissions

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

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139