Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Linked tables in MS access used by IIS problem

Posted on 2004-04-16
6
Medium Priority
?
564 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 

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 750 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

610 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