D
Daniel Carollo
Good morning everyone!
I have the following situation in an application:
For security reasons, linked tables are created at startup of the
application (tabledef is created in the Access DB and then linked following
something similar to what's described in article
http://msdn.microsoft.com/archive/d...nnectionStringParametersinMicrosoftAccess.asp :
Set dbsLocal = OpenDatabase("DB1.mdb")
Set tdfLink = dbsLocal.CreateTableDef("AuthorsTable")
tdfLink.Connect = "ODBC;DATABASE=pubs;UID=sa;PWD=;DSN=Publishers"
tdfLink.SourceTableName = "authors"
dbsLocal.TableDefs.Append tdfLink
In Access 2000 on NT4, this worked fine, and the index fields defined in the
DB2 tables were reflected in Access.
We are now migrating to Access 2002 on Windows XP, and the index aren't seen
by Access.
This has two major impacts: performance impact, and update queries that used
one of the DB2 tables (even for updates to local Access data) return the
error "Must use updateable query".
If I link the tables "by hand" (using the wizard), I get prompted to define
the index in XP (but not in 2000/NT).
I found a temporary workaround by creating a local index (executing a DDL
query "CREATE INDEX...") but that's not satisfying (several hundred
databases to modify, with several tables per DB).
My question can be summarised as: is there a setting somewhere to force
Access 2002 to recognise the index on DB2 automatically? I haven't been able
to isolate where the failure occurs: in my mind it could be Access or the
iSeries drivers.
Best regards to all, thanks for reading so far, and thanks in advance for
any tips.
Daniel
Computing Technologies International - www.computing-tech.com - We
provide solutions...
I have the following situation in an application:
For security reasons, linked tables are created at startup of the
application (tabledef is created in the Access DB and then linked following
something similar to what's described in article
http://msdn.microsoft.com/archive/d...nnectionStringParametersinMicrosoftAccess.asp :
Set dbsLocal = OpenDatabase("DB1.mdb")
Set tdfLink = dbsLocal.CreateTableDef("AuthorsTable")
tdfLink.Connect = "ODBC;DATABASE=pubs;UID=sa;PWD=;DSN=Publishers"
tdfLink.SourceTableName = "authors"
dbsLocal.TableDefs.Append tdfLink
In Access 2000 on NT4, this worked fine, and the index fields defined in the
DB2 tables were reflected in Access.
We are now migrating to Access 2002 on Windows XP, and the index aren't seen
by Access.
This has two major impacts: performance impact, and update queries that used
one of the DB2 tables (even for updates to local Access data) return the
error "Must use updateable query".
If I link the tables "by hand" (using the wizard), I get prompted to define
the index in XP (but not in 2000/NT).
I found a temporary workaround by creating a local index (executing a DDL
query "CREATE INDEX...") but that's not satisfying (several hundred
databases to modify, with several tables per DB).
My question can be summarised as: is there a setting somewhere to force
Access 2002 to recognise the index on DB2 automatically? I haven't been able
to isolate where the failure occurs: in my mind it could be Access or the
iSeries drivers.
Best regards to all, thanks for reading so far, and thanks in advance for
any tips.
Daniel
Computing Technologies International - www.computing-tech.com - We
provide solutions...