473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access97 and SQL efficiency

I have a few Access 97 DB's and I'm linking SQL tables via ODBC
connection in vba code.

I've found that the performance is slowing down. I have a few macros
that import TXT files using import specs and from there it begins a
series of queries to manipulate the table and eventually put it into
the linked SQL tables.

When I started it was rather quick however now I'm finding that the
process is taking longer.

Is it quicker to execute this type of thing through modules and VBA or
am I already doing it the most efficient way by using multiple queries
and calling them with macros.

Thanks for any advice

Aug 1 '06 #1
2 1487
There may be a few isolated cases where using ADO or DAO code in VBA might
prove faster, but the database engine is usually very, very efficient in
executing SQL, compared to our code. You might speed things up, if you
aren't already, by using local-to-your machine temporary linked tables
created in a temporary datase for any intermediate manipulations that
require writing to tables. There's a good article on this technique at MVP
Tony Toews' site http://www.granite.ab.ca/accsmstr.htm, but it uses VBA
code.

You could also investigate whether you might gain some performance by using
passthrough queries or stored procedures on the server DB -- but if you are
still using macros, not yet using VBA code, then that might be a daunting
learning curve.

Larry Linson
Microsoft Access MVP
"Bruce Lawrence" <BL*****@gmail.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
>I have a few Access 97 DB's and I'm linking SQL tables via ODBC
connection in vba code.

I've found that the performance is slowing down. I have a few macros
that import TXT files using import specs and from there it begins a
series of queries to manipulate the table and eventually put it into
the linked SQL tables.

When I started it was rather quick however now I'm finding that the
process is taking longer.

Is it quicker to execute this type of thing through modules and VBA or
am I already doing it the most efficient way by using multiple queries
and calling them with macros.

Thanks for any advice

Aug 1 '06 #2
On 1 Aug 2006 08:20:40 -0700, "Bruce Lawrence" <BL*****@gmail.com>
wrote:

If you want the best performance, you probably need to let SQL Server
do most of the work: use DTS to import the text file, and use a stored
procedure to manipulate the data.

-Tom.

>I have a few Access 97 DB's and I'm linking SQL tables via ODBC
connection in vba code.

I've found that the performance is slowing down. I have a few macros
that import TXT files using import specs and from there it begins a
series of queries to manipulate the table and eventually put it into
the linked SQL tables.

When I started it was rather quick however now I'm finding that the
process is taking longer.

Is it quicker to execute this type of thing through modules and VBA or
am I already doing it the most efficient way by using multiple queries
and calling them with macros.

Thanks for any advice
Aug 2 '06 #3

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

Similar topics

1
3073
by: Internet Arrow Limited | last post by:
Hi, I have an access application that uses the code: > Me!txtCreationDate = Format(Date, "Long Date") & " " & Format(Time, "hh:mm:ss") This works fine under access 2000 and access97 on...
5
4051
by: Chris Dugan | last post by:
Hi, has anybody come across a solution to running an Access97 database on Windows XP. The situation I have is an Access 97 database that runs perfectly from Win95/98 clients running Access97, the...
1
2619
by: Mario Crevits | last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with Access97 for several years now. We are in an Access97-2000 migration project. I'm writing a wizard for the end-users to...
0
1306
by: Bob Hynes | last post by:
Hi All, In one of my Access97 db applications I created a report which I output to a RichTextFormat file attach it to an Email and send it out, that has worked just fine for a couple of years now....
1
1414
by: George | last post by:
I have an application in Access97 which operates very normal on pc's with Win98 S.E. as an operating system.When I install the same application on a PC wich runs Windows 2000 Server (and...
10
2674
by: lesperancer | last post by:
you start with a small application in access97, then you have more modules and more... and you reach the point where tables like 'item' and 'employee' reach the limit and you know there's more...
1
1825
by: IamKJVonly | last post by:
I have office 97 which includes access97 and have built many access97 databases and use VB4 as the front end. I have just gotten a new computer which has 1 gig of memory on it and when I try to...
1
1942
by: lesperancer | last post by:
currently using access97 to link to sql7 tables sql7 is running on NT4 and terminal server 2000 in the process of upgrading hardware and software to latest stable versions citrix - windows 2003...
2
3363
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
3
1942
by: Ramchandar | last post by:
Hi, I am creating reports using VBA code. I have the same query in a querydef residing both in Access97 and Access2003. The result of this querydef is then moved to a table in Access97 and...
0
7018
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
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.