link to database very slow

J

joe

hi guys,
i've created a database. when i access this directly or from a
shortcut, say put on the desktop, it opens quickly. but when i access it via
a link on a simple html page (not from the web or anything fancy just a
simple html page that is only used as a simple access method for the user
that sits on the same network drive as the database) it takes a long time to
open.
i can put the shortcut in the same folder as the html page... fine, use
the link on the page... very slow.

a strange one? any ideas?

regards
joe
 
T

The astounding Kwyjibo.

And the Lord did grin, and people did feast upon the lambs, and sloths,
and carp, and anchovies, and orangutans, and breakfast cereals, and
fruit bats said:
hi guys,
i've created a database. when i access this directly or
from a
shortcut, say put on the desktop, it opens quickly. but when i access
it via a link on a simple html page (not from the web or anything
fancy just a simple html page that is only used as a simple access
method for the user that sits on the same network drive as the
database) it takes a long time to open.
i can put the shortcut in the same folder as the html page...
fine, use
the link on the page... very slow.

a strange one? any ideas?

I'm assuming from the X-posts that it's an access database.
Can you post the code for the page? Might help in diagnosing the problem
 
T

Toby A Inkster

joe said:
i've created a database. when i access this directly or from a
shortcut, say put on the desktop, it opens quickly. but when i access it via
a link on a simple html page (not from the web or anything fancy just a
simple html page that is only used as a simple access method for the user
that sits on the same network drive as the database) it takes a long time to
open.

Presumably your browser is "downloading" (i.e. copying) the database to
your cache before trying to open it. That is your problem.
 
D

Desotuatail

If this is an access database on the server Give it a DNS entry on the server
with a name i.e. sample

then in your code. (Well something like this would work)


dsn = "sample"
Set connection = Server.CreateObject("ADODB.Connection")
Set rsStudent = Server.CreateObject("ADODB.Recordset")
sqlStudent = "SELECT * FROM Students WHERE Subject = maths"
rsStudent sqlStudent connection
..
..
..
response.write rsStudent ("Name")
..
..

Hope this consept is of any help

P
 
T

Toby A Inkster

joe said:
any clues on how to get around this?

It is a normal part of your browser's operation. Just open the database
directly instead of via your browser.
 
H

Hywel Jenkins

the html page is use for links to commonly used tools
this is one of the main ones

Then you can't speed it up, unless the file is cached. As someone has
already said - the browser is downloading the file and then opening
it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top