473,598 Members | 3,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

linked tables to odbc/postgres... lots of connections & disconnections

TD
Hello All-

We are in the process of converting the back end of our large MS
Access application to PostgreSQL. My question today concerns linked
tables and how their connections are managed by Access. It appears that
Access does a *lot* of connecting and disconnecting to these linked
tables. This is causing me a major headache, as I'd really like to
store some session-based information in the back end that can be
referenced by the linked tables.

Does anybody have experience with this? I'd appreciate some thoughts.
Is there any way to make Access make just one connection and hold onto
it? My hope is to have views in postgres reference session information,
but with the sessions continually getting dropped and remade, there is
no hope.

Thanks,
-Tom

Jun 8 '06 #1
2 2100
Sorry. Just another 'optimisation' from the Access/Jet
team.

At the risk of being repetitive, what /really/
irritates me about these connections is that there
is no way to run a transaction: the transaction starts
multiple connections, and they block each other.

Believe me, if there was a way to make Access use
just one connection and hold onto it, I would.

You will also probably find that there is no way
to embed meaningful information in the connection
string. Anything with any meaning is overwritten
by Access: stuff without meaning is ignored by
your server. However, that is only known for MS
SQL Server - there may be some way to pass arbitrary
information through the PostgreSQL driver.
(david)

"TD" <to*******@gmai l.com> wrote in message
news:11******** *************@i 39g2000cwa.goog legroups.com...
Hello All-

We are in the process of converting the back end of our large MS
Access application to PostgreSQL. My question today concerns linked
tables and how their connections are managed by Access. It appears that
Access does a *lot* of connecting and disconnecting to these linked
tables. This is causing me a major headache, as I'd really like to
store some session-based information in the back end that can be
referenced by the linked tables.

Does anybody have experience with this? I'd appreciate some thoughts.
Is there any way to make Access make just one connection and hold onto
it? My hope is to have views in postgres reference session information,
but with the sessions continually getting dropped and remade, there is
no hope.

Thanks,
-Tom

Jun 9 '06 #2
"david epsom dot com dot au" wrote
Sorry. Just another 'optimisation' from
the Access/Jet team.

At the risk of being repetitive, what /really/
irritates me about these connections is that there
is no way to run a transaction: the transaction starts
multiple connections, and they block each other.

Believe me, if there was a way to make Access use
just one connection and hold onto it, I would.

You will also probably find that there is no way
to embed meaningful information in the connection
string. Anything with any meaning is overwritten
by Access: stuff without meaning is ignored by
your server. However, that is only known for MS
SQL Server - there may be some way to pass arbitrary
information through the PostgreSQL driver.


Jet does not dink with the contents of Passthrough Queries. I assume that
the PostgreSQL ODBC driver allows Passthrough Queries.

If you are allowed to create stored procedures in your environment, perhaps
you could do your transaction in a stored procedure. (I am aware that the
Database Administrators in many business environments do not allow "mere
front-end programmers" to dink around with their server databases by doing
such things as creating stored procedures.)

Perhaps what you want to do can be done with an ADP. If so, it is one of the
few reasons that using ADP would be good, IMNSHOBOPWOIVSD WMAANTMMPWOIDNV (In
my not-so-humble opinion, but other people whose opinions I value sometimes
disagree with me about ADP, not to mention many people whose opinions I do
not value).

Larry Linson
Microsoft Access MVP
Jun 10 '06 #3

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

Similar topics

6
6760
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used the SQL Profile to watch the T-SQL-Command which Access ( who creates the commands?) creates and noticed:
30
9808
by: btober | last post by:
Whenever I create a temporary table, with something like CREATE TEMPORARY TABLE temptable1 AS SELECT * FROM paid.ad_hoc_query; New schemas appear, with names like "pg_temp_1". I guess the appearance of these schemas with "temp" in the name indicates that they are "temporary" schemas and related to the temporary table creation, but the schemas persist even after the end of the session in which the temporary table was created.
2
4496
by: Jeff Pritchard | last post by:
Some time ago I am sure I came across something that said this was possible, though it doesn't seem to work. A client wants to replace an Access back-end with SQL Server tables. We have tried linking the SQL tables to an Access back-end and then linking the linked tables in the Access back-end to the Access front-end. Doesn't work at all. Obviously, this can't be done. What is the best way to replace an Access back-end with SQL tables?
3
1261
by: Enzo's Dad | last post by:
I have an Access frontend for an SQL backend. I'm simply using ODBC to connect. On my copy of this Access database, I have four linked tables and all works well. If I copy the Access MDB to another workstation, I have to 1) recreate my ODBC connections, 2) delete all my linked tables, and then 3) recreate the linked tables. Ideas to automate this? I'd like to have multiple users use my MDB. Thanks in advance.
4
18948
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL password. I am developing a process that will automatically run at night which will access those tables. I need to be able to give Access the password, as the user currently does, so that the process can run without a password prompt appearing....
7
11822
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For tables that involve a number field as the primary key, the data is returned successfully. For tables that involve a character field (e.g. CHAR(3) or VARCHAR(10)) as the primary key, I have the correct number of rows returned, but the data displayed...
2
6003
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access frontend and open it again. When I try to use the forms, I get an error message: "Could not...
5
2795
by: Neil | last post by:
I'm running Access 2000 with a SQL 7 back end, using ODBC linked tables in an MDB file. The db is used by about 30 users on a LAN, and an additional 10 or so on a WAN. Recently, one of the WAN users complained of intermittently not being able to find certain customers in the customers table (contains around 40,000 records). There are specific "problem records" of customers that can't be found, and they all start with the letter "F" (the...
8
4101
by: brucedodds | last post by:
I've inherited an A2003 application with linked SQL Server 2000 tables in the back end, using the Microsoft SQL Server ODBC driver. We've set up a test SQL Server database. I'd like to automate the process of relinking the application to test/prod. I've found some code examples here of relinking ODBC back ends to different databases, but they involve deleting the table before relinking. My concern is that the primary key information...
0
7987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7899
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8392
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8264
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3897
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1250
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.