If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP using SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-06, 08:00
ymadhuri ymadhuri is offline
Registered User
 
Join Date: Nov 2005
Posts: 6
ASP using SQL

Hi
Can I use a SQL in statement using 2 tables from 2 different databases one from Access and the other one from SQL Server.

select distinct region_id,country_name,country_id from Renewal_Data where region_id in (select region_id from smUsrGrp where userid = '"& suserid & "')

Here Renewal_Data table is an Access table and smUsrGrp is SQL table.
Regards
Madhuri
Reply With Quote
  #2 (permalink)  
Old 02-02-06, 08:14
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
providing you have physical access (permission) to read or write those data sources you can do what ever you like.

As far as I'm aware ASP like other such languages doesn't care what db storage method it talks to, providing in it knows how to talk to the db.

It does mean that you will be running 2 connections to your data for each instance of your script, so you may have a resource issue, especailly if you don't correctly clean up after the connection is finished with.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 02-07-06, 19:49
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
At first I didn't think it could be done, but I actually tried it and it worked:

http://www.sitepoint.com/forums/showthread.php?t=101500
Forums » Program Your Site » ASP » Populate 1 Array with 2 Queries?
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On