473,714 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#Deleted displaying for ODBC linked tables

Joe
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 in
all the fields is "#Deleted". I have a colleague who does not seem to have
the same problem I do, and I have not been able to see any differences
between his machine and my machine. We use the same versions of software and
drivers. Jet is version 4.0.8618.0 on both machines

Any help in resolving this would be great.

An example follows:

In Oracle I run the following:

CREATE TABLE anzsic (
Code char(3) NOT NULL,
Descr varchar2(255) NOT NULL
);
ALTER TABLE anzsic ADD (CONSTRAINT anzsic_pk PRIMARY KEY (Code)) ;
INSERT INTO anzsic (code, descr) VALUES ('010','Agricul ture, Forestry,
Fishing');
INSERT INTO anzsic (code, descr) VALUES ('020','Mining' );
INSERT INTO anzsic (code, descr) VALUES ('030','Manufac turing');
INSERT INTO anzsic (code, descr) VALUES ('040','Electri city, Gas, Water');

In Access I link the tables successfully, and then double click on the
linked table "anzsic" to display the content. I have the following
returned:

CODE DESCR
=============== ==
#Deleted #Deleted
#Deleted #Deleted
#Deleted #Deleted
#Deleted #Deleted

Thanks for any help.

Joe
Nov 13 '05 #1
7 11831
Joe wrote:
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.


IS this the issue? I have experienced exactly this situation when an
Oracle data type will not translate across the ODBC/Jet interface. In
my case it's been largely when an App I administer has Oracle date
fields with just time and no date in them.

What I've done and counseled other users of the maintenance app I
administer to do is to create the query "gradually" . This means
bringing the linked tables into the query grid, linking them and bring
down ONE field at a time. Run the query. If you get data then go back
to design and bring down ONE more field. Repeat until you get the
extremely irritating #Deleted result and you'll know the culprit.
Construct queries omitting the incompatible field(s).

If you have users who want to be able to access the Oracle tables at
will, consider creating an Oracle view that does not have the "bad"
columns and have them link to that instead.

I find it works best to have a Oracle user with grant select (and
possibly other grant privileges depending on the tables/views included)
that users who want to do ODBC stuff to access.

The other bit of advice is to not bother using linked tables. Depending
on the number and nature of Jet joins performed, I've found, in my
Oracle app at least, that with 5 or more tables in an Access Jet query,
you run the danger of the results dropping data for whole columns. Use
pass through queries instead. I use DAO to create various PTQ for list
and combo box data sources, Access form recordsources and so on. In the
latter, it's great because you can apply filters to the long data type
if you have it in your Oracle table.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #2
Joe
Thanks Tim,

I have actually tried what you say, but the problem IS with the primary key
field or unique index (not exactly sure which is most accurate to use in
this case). As I said, I have a colleague who is able to link the tables
without any probs, and I try EXACTLY the same thing on my comp but it
doesn't work :(.

I know that linked tables aren't the best and that I can use pass through
queries. However, pass through queries are not updateable ... so I would
have to built views at Oracle and link them anyway (a layer of indirection I
would prefer not to have to go through).

I did a bit more playing around and find that if I build an Access query
based on the culprit table, regardless of which fields I select, I still
experience the same problem. However, if I add a "distinct" keyword into
the query, problem goes away. i.e. SELECT DISTINCT CODE, DESCR FROM ANZSIC.

Mind you, I know that adding "distinct" results in a sort and possible
slowness and would much prefer not to have to use it. Also, a query/view
built using the "distinct" keyword is not updateable, so it doesn't help me
anyway.

I'm still a little stumped

Thanks
Joe

"Tim Marshall" <TI****@antarct ic.flowerpots> wrote in message
news:cp******** **@coranto.ucs. mun.ca...
Joe wrote:
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.


IS this the issue? I have experienced exactly this situation when an
Oracle data type will not translate across the ODBC/Jet interface. In my
case it's been largely when an App I administer has Oracle date fields
with just time and no date in them.

What I've done and counseled other users of the maintenance app I
administer to do is to create the query "gradually" . This means bringing
the linked tables into the query grid, linking them and bring down ONE
field at a time. Run the query. If you get data then go back to design
and bring down ONE more field. Repeat until you get the extremely
irritating #Deleted result and you'll know the culprit. Construct queries
omitting the incompatible field(s).

If you have users who want to be able to access the Oracle tables at will,
consider creating an Oracle view that does not have the "bad" columns and
have them link to that instead.

I find it works best to have a Oracle user with grant select (and possibly
other grant privileges depending on the tables/views included) that users
who want to do ODBC stuff to access.

The other bit of advice is to not bother using linked tables. Depending
on the number and nature of Jet joins performed, I've found, in my Oracle
app at least, that with 5 or more tables in an Access Jet query, you run
the danger of the results dropping data for whole columns. Use pass
through queries instead. I use DAO to create various PTQ for list and
combo box data sources, Access form recordsources and so on. In the
latter, it's great because you can apply filters to the long data type if
you have it in your Oracle table.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

IDEA 1:

It may be possible that Access is not recognizing the primary key/unique
index on the Oracle table. In that case you can create PK/unique index
in access for the linked table - just be sure you are creating the
PK/index for the real PK/index on the Oracle table. E.g.: Oracle table
has ManagerID as the PK. In an Access query SQL view do this:

ALTER TABLE table_name ADD CONSTRAINT PK_table_name PRIMARY KEY
(ManagerID)

Run that, then check the design view of the linked Oracle table. There
should be a primary key icon on the ManagerID column.

You can do the same thing for a unique index:

CREATE UNIQUE INDEX idx_Index_name ON table_name (column_name)

See the Access Help articles on ALTER TABLE and CREATE INDEX for more
info.

IDEA 2:

In some linked SQL Server tables I had the same problem. Changed the
driver to most recent & problem went away. The Oracle driver may be out
of date. Get the most recent driver for the Oracle db version.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQbePAYechKq OuFEgEQJEtgCfeK MOOsaqzLvME5uVD 5MyeNqJEdEAnjfI
tFGr5nBr5tg8P65 pCI3br678
=/3ky
-----END PGP SIGNATURE-----
Joe wrote:
Thanks Tim,

I have actually tried what you say, but the problem IS with the primary key
field or unique index (not exactly sure which is most accurate to use in
this case). As I said, I have a colleague who is able to link the tables
without any probs, and I try EXACTLY the same thing on my comp but it
doesn't work :(.

I know that linked tables aren't the best and that I can use pass through
queries. However, pass through queries are not updateable ... so I would
have to built views at Oracle and link them anyway (a layer of indirection I
would prefer not to have to go through).

I did a bit more playing around and find that if I build an Access query
based on the culprit table, regardless of which fields I select, I still
experience the same problem. However, if I add a "distinct" keyword into
the query, problem goes away. i.e. SELECT DISTINCT CODE, DESCR FROM ANZSIC.

Mind you, I know that adding "distinct" results in a sort and possible
slowness and would much prefer not to have to use it. Also, a query/view
built using the "distinct" keyword is not updateable, so it doesn't help me
anyway.

I'm still a little stumped

Thanks
Joe

"Tim Marshall" <TI****@antarct ic.flowerpots> wrote in message
news:cp******** **@coranto.ucs. mun.ca...
Joe wrote:

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.


IS this the issue? I have experienced exactly this situation when an
Oracle data type will not translate across the ODBC/Jet interface. In my
case it's been largely when an App I administer has Oracle date fields
with just time and no date in them.

What I've done and counseled other users of the maintenance app I
administer to do is to create the query "gradually" . This means bringing
the linked tables into the query grid, linking them and bring down ONE
field at a time. Run the query. If you get data then go back to design
and bring down ONE more field. Repeat until you get the extremely
irritating #Deleted result and you'll know the culprit. Construct queries
omitting the incompatible field(s).

If you have users who want to be able to access the Oracle tables at will,
consider creating an Oracle view that does not have the "bad" columns and
have them link to that instead.

I find it works best to have a Oracle user with grant select (and possibly
other grant privileges depending on the tables/views included) that users
who want to do ODBC stuff to access.

The other bit of advice is to not bother using linked tables. Depending
on the number and nature of Jet joins performed, I've found, in my Oracle
app at least, that with 5 or more tables in an Access Jet query, you run
the danger of the results dropping data for whole columns. Use pass
through queries instead. I use DAO to create various PTQ for list and
combo box data sources, Access form recordsources and so on. In the
latter, it's great because you can apply filters to the long data type if
you have it in your Oracle table.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto


Nov 13 '05 #4
Joe
Thanks MGFoster,

I've checked that Access recognises the PK and it does in these cases ... so
knocks that on the head :(

I did more playing around and dropped any unique indexes and PKs on the
culprit tables in Oracle. I then relinked the table in Access. And ... it
works, I can see the data. Great, but this is not a solution, as we do need
PKs and unique indexes on our tables. So I reapplied the PK, and the
problem came back. I also tried just applying a unique index on the field
that should have been the PK (i.e. Code), without implementing the PK.
Problem also shows up in this case.

So, I am pretty sure that the unique index on a char or varchar2 field is
the thing causing all this. But still no real solution.

Any other suggestions?

Thanks
Joe
"MGFoster" <me@privacy.com > wrote in message
news:ia******** *********@newsr ead3.news.pas.e arthlink.net...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

IDEA 1:

It may be possible that Access is not recognizing the primary key/unique
index on the Oracle table. In that case you can create PK/unique index
in access for the linked table - just be sure you are creating the
PK/index for the real PK/index on the Oracle table. E.g.: Oracle table
has ManagerID as the PK. In an Access query SQL view do this:

ALTER TABLE table_name ADD CONSTRAINT PK_table_name PRIMARY KEY
(ManagerID)

Run that, then check the design view of the linked Oracle table. There
should be a primary key icon on the ManagerID column.

You can do the same thing for a unique index:

CREATE UNIQUE INDEX idx_Index_name ON table_name (column_name)

See the Access Help articles on ALTER TABLE and CREATE INDEX for more
info.

IDEA 2:

In some linked SQL Server tables I had the same problem. Changed the
driver to most recent & problem went away. The Oracle driver may be out
of date. Get the most recent driver for the Oracle db version.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQbePAYechKq OuFEgEQJEtgCfeK MOOsaqzLvME5uVD 5MyeNqJEdEAnjfI
tFGr5nBr5tg8P65 pCI3br678
=/3ky
-----END PGP SIGNATURE-----
Joe wrote:
Thanks Tim,

I have actually tried what you say, but the problem IS with the primary
key field or unique index (not exactly sure which is most accurate to use
in this case). As I said, I have a colleague who is able to link the
tables without any probs, and I try EXACTLY the same thing on my comp but
it doesn't work :(.

I know that linked tables aren't the best and that I can use pass through
queries. However, pass through queries are not updateable ... so I would
have to built views at Oracle and link them anyway (a layer of
indirection I would prefer not to have to go through).

I did a bit more playing around and find that if I build an Access query
based on the culprit table, regardless of which fields I select, I still
experience the same problem. However, if I add a "distinct" keyword into
the query, problem goes away. i.e. SELECT DISTINCT CODE, DESCR FROM
ANZSIC.

Mind you, I know that adding "distinct" results in a sort and possible
slowness and would much prefer not to have to use it. Also, a query/view
built using the "distinct" keyword is not updateable, so it doesn't help
me anyway.

I'm still a little stumped

Thanks
Joe

"Tim Marshall" <TI****@antarct ic.flowerpots> wrote in message
news:cp******** **@coranto.ucs. mun.ca...
Joe wrote:
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
successfull y.

IS this the issue? I have experienced exactly this situation when an
Oracle data type will not translate across the ODBC/Jet interface. In my
case it's been largely when an App I administer has Oracle date fields
with just time and no date in them.

What I've done and counseled other users of the maintenance app I
administer to do is to create the query "gradually" . This means bringing
the linked tables into the query grid, linking them and bring down ONE
field at a time. Run the query. If you get data then go back to design
and bring down ONE more field. Repeat until you get the extremely
irritating #Deleted result and you'll know the culprit. Construct queries
omitting the incompatible field(s).

If you have users who want to be able to access the Oracle tables at
will, consider creating an Oracle view that does not have the "bad"
columns and have them link to that instead.

I find it works best to have a Oracle user with grant select (and
possibly other grant privileges depending on the tables/views included)
that users who want to do ODBC stuff to access.

The other bit of advice is to not bother using linked tables. Depending
on the number and nature of Jet joins performed, I've found, in my Oracle
app at least, that with 5 or more tables in an Access Jet query, you run
the danger of the results dropping data for whole columns. Use pass
through queries instead. I use DAO to create various PTQ for list and
combo box data sources, Access form recordsources and so on. In the
latter, it's great because you can apply filters to the long data type if
you have it in your Oracle table.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto



Nov 13 '05 #5
Joe wrote:
Thanks MGFoster,

I've checked that Access recognises the PK and it does in these cases ... so
knocks that on the head :(

I did more playing around and dropped any unique indexes and PKs on the
culprit tables in Oracle. I then relinked the table in Access. And ... it
works, I can see the data. Great, but this is not a solution, as we do need
PKs and unique indexes on our tables. So I reapplied the PK, and the
problem came back. I also tried just applying a unique index on the field
that should have been the PK (i.e. Code), without implementing the PK.
Problem also shows up in this case.

So, I am pretty sure that the unique index on a char or varchar2 field is
the thing causing all this. But still no real solution.

Any other suggestions?


Just the drivers - see if they are same version on PC that works.
Otherwise, ya got me!

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #6
MGFoster wrote:
Just the drivers - see if they are same version on PC that works.
Otherwise, ya got me!


That's what I would suggest as well. Also are you use the MS Oracle
driver (I don't but I know of people who do with no problem) or the
Oracle driver?

We're using 8i and still have machines with 7.3.4 Oracle drivers. So
far, so good.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #7
Joe
Thanks all!

Well, I have tried going back to an earlier Oracle ODBC driver (9.0.1.2.0)
and the problem does seem to go away ... so I'm keeping my fingers crossed
that we don't have to use a newer version of the Oracle driver when we
deploy our Access application via a citrix environment in a few months time.

Thanks for all your suggestions. Glad to have this one nutted out.

Cheers
Joe

"Tim Marshall" <TI****@antarct ic.flowerpots> wrote in message
news:cp******** **@coranto.ucs. mun.ca...
MGFoster wrote:
Just the drivers - see if they are same version on PC that works.
Otherwise, ya got me!


That's what I would suggest as well. Also are you use the MS Oracle
driver (I don't but I know of people who do with no problem) or the Oracle
driver?

We're using 8i and still have machines with 7.3.4 Oracle drivers. So far,
so good.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #8

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

Similar topics

1
4169
by: Thomas Bartkus | last post by:
What can I do about my Access Linked ODBC tables showing the #Deleted error? I am using MySQL ODBC 3.51 Driver and Access 2000. I can create linked tables to the MySQL database running remotely on a Linux box. Unfortunately, when you open the table (in Access), all the data are filled with error values. This one is driving me crazy because I can successfully read and write to
6
6773
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:
11
17566
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time to load making any kind linkage with my Access data virtually useless. I have the MySQL driver setup in as a USER DSN. The MySQL data is sitting out on a server and the Access database is running locally. The network connection is very...
4
3664
by: Lisa | last post by:
I upsized a database to SQL and accidentally deleted a table, how can I recreate that linked table?
0
1438
by: Ellen Ricca | last post by:
I have an Access db with several ODBC linked ORACLE tables. These tables have multiple-field PK's. The tables work just fine in many diff types of queries including unmatched queries that are created manually without using the UMQ Wizard. The problem/question, however, involves using these tables in an UMQ Wizard. At the point in the wizard where it asks for "What piece of information is in both tables?" and it lists the fields from the 2...
7
3424
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well - sorry for cross posting. Back ground: User at remote site has Access 2000 running on XP (don't know SP of either). Linked tables are DB2 v8 running on AIX. All of the linked tables are in the same database and schema.
0
2127
by: Cunfshon | last post by:
I wrote about this one a while ago, and got a few responces, but nothing resolved the issue. Figured I'd give everyone one more crack at it. I have an established MS Access database using linked tables to an external MS-SQL datasource, through ODBC. I can establish the ODBC link, I can link the tables in a new MS Access database (File -> Get External Data -> Link Tables...), I can view the structure of the linked table(s), I can querie...
1
3806
by: RLN | last post by:
RE: Access 2003 using WinXP SP2 Problem: When I start up my app I double click either one of my two Oracle tables in the table list, it asks for an id and pass. I need them to be linked at startup automatically. The Oracle db contains two tables I need. I've already created an ODBC data source that contains the userid and pass to link to the Oracle DB. It works. When I go into linked table manager, I can link to them just fine
3
5125
by: Bret Kuhns | last post by:
I recently started a co-op/internship at a company and they are looking to migrate a large legacy supported application from OLEDB to SQL Server. I'm doing prelim work in experimenting with the options available. The application is huge (1+ million lines of C++ code), so it'd be quite a bit of man hours to adapt all the database code for SQL Server. I stumbled upon linked tables in an OLEDB file to an ODBC source (such as SQL Server) and...
0
8801
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
9314
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
9174
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9015
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...
0
7953
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5947
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
4464
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
4725
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2520
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.