473,408 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Need help pleaseeee...updating tables

Hello all

I have been trying to look for the answer to my question doing some
search in the groups but no luck. I have linked a table using ODBC.
Then I made a copy of the link table to my local computer (so my
queries can run faster, it was paintful slow with the link table).
Everything works fine but the link table changes everytime (it is an
Invoice table). What I want is a way to automatically update my local
table with the link table everytime I open the database. What is the
best solution for this?

Thanks in advance

Jan 24 '07 #1
10 1791


I tried the Update Query, it works...BUT its veryyyyyy slow. There has
to be another way around.

Jan 24 '07 #2


On Jan 24, 12:41 pm, "erick-flores" <erickjflo...@gmail.comwrote:
I tried the Update Query, it works...BUT its veryyyyyy slow. There has
to be another way around.

If you want to re-create your local table as an exact duplicate of the
external table then you don't need to do an Update query. You might try
to...
- delete the contents of your local table and then do an Append query
from the linked table, as in

DELETE local_table.* FROM local_table;

INSERT INTO local_table
SELECT linked_table.*
FROM linked_table;
....or...
- use VBA code to drop the local table and then re-import the external
table using DoCmd.TransferDatabase

Jan 24 '07 #3
"erick-flores" <er**********@gmail.comwrote
I have been trying to look for the answer to my question doing some
search in the groups but no luck. I have linked a table using ODBC.
Then I made a copy of the link table to my local computer (so my
queries can run faster, it was paintful slow with the link table).
Everything works fine but the link table changes everytime (it is an
Invoice table). What I want is a way to automatically update my local
table with the link table everytime I open the database. What is the
best solution for this?
Well-thought out designs and user interfaces often work just fine with
linked ODBC tables. Copying entire tables, or multiple tables, is rarely
the best solution for "painfully slow"... because you are often retrieving
vastly more records than you will access during the session.

Thus, I hesitate to offer suggestions for good/better ways to do something
that might well not be the way the problem should be addressed, but for what
it's worth: You'd put the code in an event of the Form you specify in the
Startup Parameters... on the menu Tools | Startup. But, I caution, you'd be
better to describe your situation in some detail because someone may have a
much better suggestion.

My experience with ODBC links to server DB tables has been that they were
surprisingly efficient, if you didn't "go out of your way" to force them to
be INefficient.

Larry Linson
Microsoft Access MVP
Jan 24 '07 #4
Hi, Erick
I tried the Update Query, it works...BUT its veryyyyyy slow. There has
to be another way around.
Perhaps my comparison of the car that's missing an engine to a table missing
a primary key is sounding a little more apropos, especially since you're
asking how to make your car to go faster -- despite there being no engine.

http://groups.google.com/group/comp....0815c8b2c7639a

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"erick-flores" <er**********@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
>

I tried the Update Query, it works...BUT its veryyyyyy slow. There has
to be another way around.

Jan 25 '07 #5


On Jan 24, 6:09 pm, "Larry Linson" <boun...@localhost.notwrote:
My experience with ODBC links to server DB tables has been that they were
surprisingly efficient, if you didn't "go out of your way" to force them to
be INefficient.
That may be true for mainstream ODBC drivers, but sometimes an ODBC
driver just sucks. In my particular case it was an ODBC driver that a
vendor supplied for their Btrieve-based application. The driver was
such a dog that we had to import the entire database into Access so we
could create custom reports. If we tried to use linked tables the
reports would literally take *days* to run.

Jan 25 '07 #6
Gord wrote:
could create custom reports. If we tried to use linked tables the
reports would literally take *days* to run.
Did you try pass through queries?

I find for basic queries in Oracle, linked tables work just as quickly
as do pass through queries and even faster in some instances(!).
However, I prefer Pass through queries as for complex queries with many
tables and most especially, anything with subqueries tends to lock up.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Jan 25 '07 #7

Thanks for all ur replies.

I created a Make-Table Query based on the link table. So everytime I
open the application this query will run and update my table. The link
table is now local, and my queries and reports run perfect.

I am not sure if this will give me future problem...but at least its
working for the moment, and working fine.

Jan 25 '07 #8
"erick-flores" <er**********@gmail.comwrote in
news:11**********************@v33g2000cwv.googlegr oups.com:
>
Thanks for all ur replies.

I created a Make-Table Query based on the link table. So everytime I
open the application this query will run and update my table. The link
table is now local, and my queries and reports run perfect.

I am not sure if this will give me future problem...but at least its
working for the moment, and working fine.
Why not print out (hardcopy) all the data at its source and send it to the
local client via UPS every day?
Jan 25 '07 #9
erick-flores wrote:
Thanks for all ur replies.
What? The ancient lost city of Ur replied?
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Jan 25 '07 #10


On Jan 25, 9:59 am, Tim Marshall
<TIM...@PurplePandaChasers.Moertheriumwrote:
>Did you try pass through queries?
In a manner of speaking, yes. When we got beyond the most trivial of
reports and started to see "lockups" I ran tests by passing SQL queries
directly to the ODBC driver via ADO. The results indicated that as the
number of rows in the main table increased by a factor of 10, the
execution time of the query increased by a factor of 100. For one
particular test query

60 rows took 2 seconds
600 rows took 214 seconds (3.6 minutes)
6,000 rows took 20,535 seconds (5.7 hours)
so 60,000 rows would take ~2,000,000 seconds (about 23 days)

Ouch.

Jan 25 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bernard André | last post by:
Hi All, context: I am using Access 97 tablkes with VB. I can see records in the MDB, using Adodc and datagrid. No problem. But when doing: rsprivate.AddNew rsprivate!For =...
2
by: Irvin | last post by:
I new to ASP.net and am using the following code to attempt to update an Access 2000 mdb. The code does make it through the code following "try". NO rows are updated. There is a row with the...
0
by: cwbp17 | last post by:
Have two tables that have a FK relationship on ID column. Have one datagrid that displays all of the columns of both tables. What's the best approach on updating a row from the datagrid back to...
1
by: Jason Shohet | last post by:
We have an app that queries 5 tables into a dataset. Now, lets say 1 of those tables is about to change due to user input on a webpage. Right now, we are manually updating the db with an update...
0
by: cwbp17 | last post by:
I'm having trouble updating individual datagrid cells. Have two tables car_master (columns include Car_ID, YEAR,VEHICLE) and car_detail (columns include Car_ID,PRICE,MILEAGE,and BODY);both tables...
6
by: BB | last post by:
Hello all, I am using the currency manager in VB to navigate a dataset. I know how to use .position to loop through the rows, but what I want to do is *get* the position of the row I just...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
4
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
0
by: JimN1 | last post by:
Error: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. This is a continuation of my previous table element update question. I am now getting the above...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.