Data From 2 SQL Databases

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

  1. #1

    Default Data From 2 SQL Databases

    Hey all

    I'm building an app in SQL Server 2000 - my first one (I was weaned on Access). I'm going to have some tables in my own SQL database, but I'm also going to need to get data from another SQL database on another server for lookups and whatnot. I'm trying to hash out a methodology to this. I can see one of two ways to do it -

    1. Create two connections, one for each DB, and just use the one I need as I need t
    2. Create some SQL server version of a linked table (this is possible, right?) and refer to everything in terms of my own DB

    Assuming that #2 is possible, would either of those two methods be preferable, or is there another one that is even more so

    Thanks.
    MDW Guest

  2. Similar Questions and Discussions

    1. Synchronise data in two databases
      Hello. is there a good way of synchronizing two MySQL databases so they hold the same data? Basically, I've created a family tree in php/MySQL...
    2. [PHP] Databases
      On Thursday 25 Sep 2003 08:14, Shaun van den Berg wrote: How long is a piece of string? Too vague a question. Authenticated downloads? ...
    3. PHP and databases
      I am completely new to PHP and have a couple questions. Can PHP access Microsoft Access databases? Are there any basic scripts, any good sites...
    4. Federated Databases, joins across databases etc
      Greetings, I want to do a join between 2 tables on 2 different db2 databases on the same server. I assume that I have to use federated databases. I...
    5. One vs many databases
      Hi Gang, I'm looking at submitting a business case to management that will justify changing from our current structure of many oracle databases...
  3. #2

    Default Re: Data From 2 SQL Databases

    Create a linked server in SQL Server... then you can write stored procedures
    that join local data to the other server... and your ASP app just has to
    know there's "a data source" rather than know the specifics of multiple, or
    even that there are multiple data sources...

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "MDW" <anonymous@discussions.microsoft.com> wrote in message
    news:44397AB7-9C7D-47A2-B81C-779473B82D24@microsoft.com...
    > Hey all,
    >
    > I'm building an app in SQL Server 2000 - my first one (I was weaned on
    Access). I'm going to have some tables in my own SQL database, but I'm also
    going to need to get data from another SQL database on another server for
    lookups and whatnot. I'm trying to hash out a methodology to this. I can see
    one of two ways to do it -
    >
    > 1. Create two connections, one for each DB, and just use the one I need as
    I need to
    > 2. Create some SQL server version of a linked table (this is possible,
    right?) and refer to everything in terms of my own DB
    >
    > Assuming that #2 is possible, would either of those two methods be
    preferable, or is there another one that is even more so?
    >
    > Thanks.

    Aaron Bertrand [MVP] 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