473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How can I get my asp application to access a database on my domain, from my subdomain

I am using a member area manager program, and have subdomains on my website. My challenge is that I want the program to access the same database (on the domain) from both subdomains. The file I've been told to change is this:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. ' FileName="Connection_ado_conn_string.htm"
  3. ' Type="ADO" 
  4. ' DesigntimeType="ADO"
  5. ' HTTP="true"
  6. ' Catalog=""
  7. ' Schema=""
  8. MM_membersareamanager_STRING = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/databases/MembersAreaManager.mdb") & ";"
  9. %>
  10.  
I've been instructed to change it to call on the main domain, but am at a loss as to how to do this. Any advice would be greatly appreciated.
Jan 14 '08 #1
3 1244
Rabbit
12,516 Expert Mod 8TB
Please use code tags

I've never used ASP but I suspect they want you to use the absolute path instead of a relative path.

i.e. C:\Website\Database.mdb rather than

\Website\Database.mdb
Jan 14 '08 #2
missinglinq
3,532 Expert 2GB
This really is an ASP question, I think, so I'm going to move it over to that side of the fence!

Welcome to TheScripts!

Linq ;0)>
Jan 14 '08 #3
jaxjagfan
254 Expert 100+
The location of the database is relative to the root folder of the site. If you have your db in a subfolder of the website's root folder then your connection string would be \mydbfolder\mydb.mdb. Same goes for images and other items \images\myimage.jpg. The domain/subdomain should not be an issue - if the users have access to the site and the appropiate db drivers (Access) are set up then users should be able to retrieve data via your asp pages.

I am not positive how to do this if and when the db resides outside the rootfolder structure.
Jan 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: spike | last post by:
I tried to upload a .htaccess-file to the directory that i wanted to protect. This is what I wrote in it: ------------------------------------------------ <Limit GET> order deny,allow deny from...
0
by: Leon | last post by:
How do I point a sub-domain to a sub-directory or .aspx page of my site using asp.net? I'm using a shared hosting service, that does not offer subdoman forwarding. however, you can write your...
4
by: Bill Borg | last post by:
Hello, I have a large commerce app, hosted for several hundred companies (i.e. each "company" is a small business selling something through my site, independent of all the others). Each...
13
by: gsecrets | last post by:
Hi friends.. I have a table with the following ..... fields URL Domain The domain name has the following suffix ..edu, .com, .org, .ca.org etc;
12
by: js | last post by:
Hi list, I have a list of URL and I want to sort that list by the domain name. Here, domain name doesn't contain subdomain, or should I say, domain's part of 'www', mail, news and en should be...
1
by: buynorwex | last post by:
I am using a member login program that restricts access according to security levels, and have subdomains on my website. My challenge is that I want the program to access the same database (on the...
2
by: buynorwex | last post by:
I am using a member area manager program, and have subdomains on my website. My challenge is that I want the program to access the same database (on the domain) from both subdomains. The file I've...
6
by: totalstranger | last post by:
Using an AJAX Javascript function that works fine if it's in the primary domain www.arnb.org, but suffers from a security error when attempted from a subdomain, thepatsyreport.arnb.org In the...
3
by: bnashenas1984 | last post by:
Hi everyone I'v made a website which allows users to have their own subdomains Each user can have a blog in a unique subdomain Now I need to let my users register their own domain names and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.