Re: Query two databases with asp
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 11 Mar 2008 17:26:52 -0400
Are the two databases on different database servers?
dusty wrote:
I need help with all items you've mentioned.
Thanks so much.
"Bob Barrows [MVP]" wrote:
dusty wrote:
I'm trying to create an asp page that will allow users to generateI'm not sure where you are having the problem:
search results by querying mssql databases.
I inherited these databases and did not build them. Here's the
scenario.
I have two databases: DB1 and DB2. School is a table of DB1 that
consists of the fields:
ID, Parish, School, Principal, address, city, zip, etc.
Users is a table of DB2 that consists of the following fields:
ID, firstname, lastname, address, city, CompanyName, etc.
Field CompanyName (DB2\Users) is linked to ID (DB1\School). Users
would like to have the capability of finding out which users are in
a particular parish or school.
I don't know how to produce the correct asp code that will pull
information from two different databases.
- constructing the sql statement to join the tables?
- executing the sql statement and retrieving the results into a
recordset?
- displaying the results to the users?
Where do you specifically need help?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Query two databases with asp
- From: dusty
- Re: Query two databases with asp
- References:
- Re: Query two databases with asp
- From: Bob Barrows [MVP]
- Re: Query two databases with asp
- Prev by Date: Re: Query two databases with asp
- Next by Date: Re: Query two databases with asp
- Previous by thread: Re: Query two databases with asp
- Next by thread: Re: Query two databases with asp
- Index(es):
Relevant Pages
|
|