Linked Tables - indexes

  • Thread starter osupratt via AccessMonster.com
  • Start date
O

osupratt via AccessMonster.com

I have most of my tables in my front-end Access 'linked' to a sql server back-
end. I have some reports that take a couple of minutes to run (sql reports,
not access). When running a query plan or optimizer it tells me of some
indexes to add on the back-end sql tables. When adding these indexes the
reports now run very fast or instantaneous. The problem I have now is that I
get errors on my front-end saying Timeout occurred. Has anyone had any
experience with this and why would my front-end act like this all of a sudden?
Thanks.
 
J

John W. Vinson

I have most of my tables in my front-end Access 'linked' to a sql server back-
end. I have some reports that take a couple of minutes to run (sql reports,
not access). When running a query plan or optimizer it tells me of some
indexes to add on the back-end sql tables. When adding these indexes the
reports now run very fast or instantaneous. The problem I have now is that I
get errors on my front-end saying Timeout occurred. Has anyone had any
experience with this and why would my front-end act like this all of a sudden?
Thanks.

If you're using ODBC to link to the tables, Access has stashed some
information about the backend table in the frontend, and by changing the
structure of the backend (by adding an index), the information is out of date.
I've gotten in the habit of routinely *deleting* the link from the frontend
and using File... Get External Data... Link... ODBC to relink to the table
after any structural change to the table.
 
J

John W. Vinson

John,

Have you had trouble with the Relinker?

Yes, very much so, if there has been a structural change to the backend table.
I've had wierd things - data coming into the wrong field (even different
datatype fields), no records displayed at all, searches failing. I now ALWAYS
delete and recreate the link after making any table structure change in the
backend.
 

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

Top