Solved

Linked tables in MS access used by IIS problem

Posted on 2004-04-16
6
512 Views
Last Modified: 2012-05-04
Situation:
Got a Web-server running IIS. On the local disk got an mdb-file with 2 linked tables to two other mdb-files (tables) located on another server (file-server).
In an ASPscript I'm connecting to a query; this query has information of a table in the local mdb and the 2 linked tables.
Problem: the webbrowser (on a client machine)errors saying the specified drive of the linked tables is not correct.
Tried to fix this by setting up the to remote mdb-files as ODBC's; but the local access won't let me link via ODBC to it.

Anyone a good idea how to solve this?
Thanks,
Toto.
0
Comment
Question by:Totosh
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:phL
ID: 10845168
If you are using drive letters for your linking (D:\, E:\, etc.) that could be the problem.  Use server names, if possible.
0
 

Author Comment

by:Totosh
ID: 10858164
PHL,
Thought about that too but getting a permissions problem on the page now:
 Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file '\\server\directory\datafile.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

The datafile.mdb file is the original table; so basically the link works but now getting permission problems.

Any ideas how to work-around or solve this?
Toto.


0
 
LVL 1

Expert Comment

by:phL
ID: 10860117
Datafile.mdb is on the webserver and now your ASP page connects to it with a connection path that uses server names instead of file letters.  That is good.  Datafile.mdb has two linked tables that refer to a database on another server (file server).  These links should also use server names instead of file letters.

You should also check to make sure you can access the database on the file server directly.  Also, is there any chance it is actually opened exclusively by another user?  This also occurs if any object in that database is in design view.  Is there any possibility of moving that database to the web server?  If the linked tables are read only and updated infrequently, could local copies be imported?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:Totosh
ID: 10928998
Phl,

Sorry for the late reply.
No - moving the applications/database to the web-server is not an option.
But I made a small program that is importing the needed tables.

Other and related issue with this is the size of the mdb-file. When importing these tables; the size of the mdb-file is (of course) getting bigger and bigger.
Is there a way I can compact the mdb-file automatically (via code or macro)?

Cheers,
Toto.
0
 
LVL 1

Accepted Solution

by:
phL earned 250 total points
ID: 10929285
The Access Web has some code to compact a database:
http://www.mvps.org/access/modules/mdl0020.htm

It should be done when no one is using it.
0
 

Author Comment

by:Totosh
ID: 10929793
Thanks.
Cheers,
TOTO.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now