Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 25th, 2003, 10:38 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Linking tables in Access databases on web server

I have several Access databases on my web server that are queried using ColdFusion. I need to centralize some data in one location that will be used by multiple databases.

Linking to the tables in the central database from the others seems like a good way to handle this, but the problem is that when I go into Access and link the tables, Access stores the full path to the database file on my computer, which is not the same as the path to the file on the web server (e.g. C:\whatever.mdb vs. D:\path\whatever.mdb).

Access is such a pain in the ***. I can even see where it is storing the path in one of the hidden tables, but it won't let me edit the field. If there was either a way to get Access to store a relative path to the database with the table that I am linking to, or a way to fool it into storing the path of the file on the web server, then it would probably work.

Can anyone suggest a solution to this problem?

Reply With Quote
  #2  
Old August 25th, 2003, 01:22 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
The easiest way is to "clone" the exact same folder structure on your local development machine. Then the linked tables will still work when uploaded to the web server.

Otherwise you probably need to run access on the server itself and use the linked table manager to change the links.

Reply With Quote
  #3  
Old August 25th, 2003, 02:26 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Quote:
The easiest way is to "clone" the exact same folder structure on your local development machine.
That's really not that easy though.

The technique that I am currently working with, per information I found on the web, is to use an AutoExec macro that executes a TranserDatabase command to link to the table in the other database. So far it seems to be working but I have to test it more thoroughly.

Reply With Quote
  #4  
Old August 25th, 2003, 04:13 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
There is code on http://www.mvps.org/access to programatically relink tables. Generally if your app is an asp application on a hosted server, you won't be able to use any VBA, macros, modules, etc, since all that code is executed by the Access application itself.

Reply With Quote
  #5  
Old August 25th, 2003, 04:56 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Yes, you're right, it doesn't work. I don't have ASP, only Coldfusion. The code that you provided the link to is just insane, did you see how long it is, to do one simple thing? Why does Microsoft have to do everything the hard way?

What do you recommend? I just learned of the DOS command subst which can create a "virtual" drive, but I don't know if it will be reflected in Windows, and the drive, D:, that I would need to fake already exists as a real drive.

Thanks for your help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Linking tables in Access databases on web server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway