473,383 Members | 1,862 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,383 software developers and data experts.

Writing into external table not possible

I use an Access-form to write into an external Oracle table via Oracle-ODBC
driver.
It is not a read-only connection, and batch autocommit mode set to "all
successful statements".

I can read all records from table, but update, insert, and delete is allowed
on form level, but I cannot change records and I cannot insert. Whats wrong?

Thanks,
Schroeder
Nov 13 '05 #1
6 1683
M. Schroeder wrote:
I use an Access-form to write into an external Oracle table via
Oracle-ODBC driver.
It is not a read-only connection, and batch autocommit mode set to
"all successful statements".

I can read all records from table, but update, insert, and delete is
allowed on form level, but I cannot change records and I cannot
insert. Whats wrong?

Thanks,
Schroeder


Does the Oracle table definition include a Primary Key or a Unique Index? If
not then when creating the link you should be getting prompted for the fields
that can be used to build a local unique index. Without one of these three
things an ODBC link will not be editable.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
> Does the Oracle table definition include a Primary Key or a Unique Index?
If
not then when creating the link you should be getting prompted for the fields that can be used to build a local unique index. Without one of these three things an ODBC link will not be editable.


(There was index and PK created, but I got nor prompt on creating the link)
But I took another table, with no primary key and no index.
Now I can insert records, but after closing the form they are not
persistent.
On re-opening the form the records are gone.

Looks to me as if the commit statement in ODBC-DSN does not work?

Schroeder
Nov 13 '05 #3
M. Schroeder wrote:
Does the Oracle table definition include a Primary Key or a Unique
Index? If not then when creating the link you should be getting
prompted for the fields that can be used to build a local unique
index. Without one of these three things an ODBC link will not be
editable.


(There was index and PK created, but I got nor prompt on creating the
link) But I took another table, with no primary key and no index.
Now I can insert records, but after closing the form they are not
persistent.
On re-opening the form the records are gone.

Looks to me as if the commit statement in ODBC-DSN does not work?

Schroeder


Sounds like you set the DatEntry property of the form to Yes. In that mode it
is only intended for doing new insertions and does not display any existing
records. They are still in the table though.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
"Rick Brandt" <ri*********@hotmail.com> schrieb im Newsbeitrag
news:35*************@individual.net...
M. Schroeder wrote:
Does the Oracle table definition include a Primary Key or a Unique
Index? If not then when creating the link you should be getting
prompted for the fields that can be used to build a local unique
index. Without one of these three things an ODBC link will not be
editable.
(There was index and PK created, but I got nor prompt on creating the
link) But I took another table, with no primary key and no index.
Now I can insert records, but after closing the form they are not
persistent.
On re-opening the form the records are gone.

Looks to me as if the commit statement in ODBC-DSN does not work?

Schroeder


Sounds like you set the DatEntry property of the form to Yes. In that

mode it is only intended for doing new insertions and does not display any existing records. They are still in the table though.


Yes - I had DatEntry on Yes and re-set it (does not sound very logical to
me), and now it works well on my test table. I can do updates and inserts.

But the "real prod-table" does not work with the same properties.

I did not delete the PK on my prod-table, I set it to inactive. Maybe thats
the problem and I have to delete it. But how can I get asked from Access to
build a new table with my key-constraints in Access? It would be nice to
keep the PK, because its not just a data-import where I can drop the Key and
rebuild it after the import.

Thanks,
Schroeder

Nov 13 '05 #5
M. Schroeder wrote:
Yes - I had DatEntry on Yes and re-set it (does not sound very
logical to me), and now it works well on my test table. I can do
updates and inserts.

But the "real prod-table" does not work with the same properties.

I did not delete the PK on my prod-table, I set it to inactive. Maybe
thats the problem and I have to delete it. But how can I get asked
from Access to build a new table with my key-constraints in Access?
It would be nice to keep the PK, because its not just a data-import
where I can drop the Key and rebuild it after the import.

Can you edit the linked table directly (without using your form)?

The "normal" process is that when you initially create the link to an ODBC table
Access will either detect a Primary Key or Unique Index on the server and
utilize it. If it does not it will prompt you to choose fields for building a
local index.

Were you so prompted when you created the link? If you were prompted and
selected a field or fields to use as a local index did you ever refresh the link
after that? This will cause the local index to be lost. To get it back you
would need to delete the link and then recreate it.

If you are not prompted to choose fields when creating the link then that should
mean that Access is already picking up an index from the server in which case
the link should be editable. Are you sure your permissions on the server allow
for editing?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #6

"Rick Brandt" <ri*********@hotmail.com> schrieb im Newsbeitrag
news:35*************@individual.net...
M. Schroeder wrote:
Yes - I had DatEntry on Yes and re-set it (does not sound very
logical to me), and now it works well on my test table. I can do
updates and inserts.

But the "real prod-table" does not work with the same properties.

I did not delete the PK on my prod-table, I set it to inactive. Maybe
thats the problem and I have to delete it. But how can I get asked
from Access to build a new table with my key-constraints in Access?
It would be nice to keep the PK, because its not just a data-import
where I can drop the Key and rebuild it after the import.

Can you edit the linked table directly (without using your form)?

The "normal" process is that when you initially create the link to an ODBC

table Access will either detect a Primary Key or Unique Index on the server and
utilize it. If it does not it will prompt you to choose fields for building a local index.

Were you so prompted when you created the link? If you were prompted and
selected a field or fields to use as a local index did you ever refresh the link after that? This will cause the local index to be lost. To get it back you would need to delete the link and then recreate it.

If you are not prompted to choose fields when creating the link then that should mean that Access is already picking up an index from the server in which case the link should be editable. Are you sure your permissions on the server allow for editing?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


I just deleted the link, deleted the primary key in Oracle and buildt the
link new - then choosed a composed primary key in Access. (Editing of the
former key was not possible.)
But now it works fine; I think I can shift constraints from Oracle to
Access.

Thanks,
Schroeder
Nov 13 '05 #7

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

Similar topics

3
by: ishekar | last post by:
Hi, I have an application where i want to write data to a file, the data is being sent from an external source. I know the total size of the data and then i retrieve the data in small segments...
6
by: Christopher Benson-Manica | last post by:
I have some markup like the following: <form> <table> <script> <!-- Write the table markup //--> </script> </table> <form>
1
by: Martin_Hurst | last post by:
Is it possible to establish a connection from within a postgres database to another external database on the network, i.e., not a java or scripting connection, BUT by some type of table definition...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
2
by: Bruce Dodds | last post by:
One of my clients is going to move to CD or DVD as a medium to backup/transfer data. Is it possible for an A2003 application to write directly to a CD or DVD under Win XP, or will I need to set up...
1
by: AM | last post by:
What I am trying to do is write raw data to a USB to parallel adapter to control an external device (as I dont have a parallel port) using VC++.net or C# The adapter is not a true parallel port...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
30
by: Cramer | last post by:
I've finally gotton board with TDD (test driven development) and wow is it effective! I went from sceptic to True Believer with my first effort. My question: According to the various books and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.