Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 10th, 2003, 08:33 AM
Authorized User
 
Join Date: Jul 2003
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default using multiple Data Sources

How do I tell my script I want to use more than one data source.
Data Source 1 = sFeinNum (fein table from Expense DB)
Data Source 2 = sAccounts (account table from the Expense DB)

How do I change this bit of code to include both sFeinNum and sAccounts?

Set connect = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateOBject("ADODB.Recordset")
connect.ConnectionString = _
  "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  "Data Source=" & sFeinNum
connect.open

 
Old July 10th, 2003, 08:49 AM
Authorized User
 
Join Date: Jul 2003
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

Big mistake in my message

Data Source 1 = sFeinNum (fein table from FEIN DB)
Data Source 2 = sAccounts (account table from Account DB)


 
Old July 10th, 2003, 08:54 AM
Authorized User
 
Join Date: Jul 2003
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

Or is the problem with this piece of code:

<%
Dim sFeinNum
sFeinNum = "F:\dbs\fein.mdb"
sAccount ="F:\dbs\Expense.mdb"
%>


Should I use one Data Source for both databases? How do I do that?

 
Old July 10th, 2003, 02:51 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What is it that you need to accomplish? Are you trying to do a JOIN on two databases?

If that's the case, AFAIK that cannot be done with an Access database and ADO.

If you need to join the data anyway, I think they only way is to get two local Recordsets, copy their contents to an array, and build some JOINing logic yourself.

If this is not what you want, please describe your situation in some more detail.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Datasets from multiple Data Sources SQL_Hacker Reporting Services 1 June 18th, 2008 02:25 PM
Joining data from multiple data sources ClaesR BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 August 28th, 2006 09:30 AM
Deal with multiple sources Hind XSLT 2 June 5th, 2006 07:16 AM
Query from multiple data sources billmedd BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 September 27th, 2004 10:46 AM
one record set multiple data sources jack1234 Classic ASP Professional 1 October 17th, 2003 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.