Home | Advertising Info10 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Monday, April 29, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: MS Access connection strings A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
nobby
Newbie
Newbie


Joined: October/15/2005
Online Status: Offline
Info: 1
Added: October/15/2005 at 10:40pm | IP Logged Quote nobby

is there any way of doing the folllowing, we have 2 domain names on a server and an MS Access database on site A but would also like to use this database for site B.

Is there a way of doing a connection string that uses the data in either domain.

Back to Top View nobby's Profile Search for other info by nobby
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: October/16/2005 at 2:38pm | IP Logged Quote cwilliams

sure, if all the sites and the access database are on the same server.

just use a dsn-less connection that specifies the exact physical path to the database file including the drive letter.

sorta like this example though there are other ways to do it as well.

ConnectionString = "DBQ=C:\Inetpub\wwwroot\somesite\data\somedatabase.mdb;Driver ={Microsoft Access Driver (*.mdb)};"

If ya dont know the physical path ask the server admins or read my article.
http://www.powerasp.com/content/hintstips/physical-path.asp



Edited by cwilliams on October/16/2005 at 2:38pm


__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
firas_TheGeek
Newbie
Newbie
Avatar

Joined: May/27/2006
Location: Oman
Online Status: Offline
Info: 28
Added: May/27/2006 at 8:37am | IP Logged Quote firas_TheGeek

cwilliams: this doesnt work at his situation, because the server.mappath give u the physical location of the server the page is at not from other server, and that is impossible, because if it works, then it will be a security breach

nobby: the soulution for ur problem cant be done directly, u have to access the database through normal asp pages, by sending a command from page on server A to page on server B that the page on B will only understand

for example, when u post a form data let the action be to a page at server B and on that page put an if statement that says if the page at B recives a certian command then open the database an output the folloeing records and then post them back to the page at server A with a command, and the page at A will read that command and understnads that the following information was posted back from the page at server B then it will show it to the user

in other words, you have accessed the database using a gateway which a page on the other server

 

hope this helps

Regards



__________________
Firas S Assaad (TheGeek)
firas489@gmail.com
0096892166434
http://firas-thegeek.blogspot.com
Back to Top View firas_TheGeek's Profile Search for other info by firas_TheGeek Visit firas_TheGeek's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com