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

ODBC update error with DB2 timestamp data

Dear all,

I found that I can't update or delete a DB2 record with timestamp using
Access through ODBC. The Access complains "No current record" while I
attempt to update or delete the record with timestamp.

Do anyone have idea of how to fix this problem?

Thanks in advance!

Henry
Nov 12 '05 #1
7 7289
"kaming" <gu***@guest.com> wrote in message
news:cs*********@imsp212.netvigator.com...
Dear all,

I found that I can't update or delete a DB2 record with timestamp using
Access through ODBC. The Access complains "No current record" while I
attempt to update or delete the record with timestamp.

Do anyone have idea of how to fix this problem?

Thanks in advance!

Henry

Try downloading the DB2 client (free) and use the IBM supplied driver. You
want the Runtime client for 32 bit Windows.
http://www-306.ibm.com/software/data...v8.html#WIN-32


Nov 12 '05 #2
Thanks Mark!

In fact, I have already downloaded the latest client and using the IBM ODBC
driver 8.01.08. However, it still not work ..
I have tried a work around by using two fields for time and date and it
works (Access can update or delete a record).
Or is there any trick to do with the ODBC driver??

Thanks!

Henry

"Mark A" <no****@nowhere.com> wrote in message
news:fM********************@comcast.com...
Try downloading the DB2 client (free) and use the IBM supplied driver. You
want the Runtime client for 32 bit Windows.

http://www-306.ibm.com/software/data...v8.html#WIN-32
Nov 12 '05 #3
> Thanks Mark!

In fact, I have already downloaded the latest client and using the IBM ODBC driver 8.01.08. However, it still not work ..
I have tried a work around by using two fields for time and date and it
works (Access can update or delete a record).
Or is there any trick to do with the ODBC driver??

Thanks!

Henry

I really don't know. I think it is just an incompatibility between Access
and DB2. MS provides this interface, but Mr. Gates not very happy that you
are using it against a non-MS database, and they often play lip service to
support issues for non-MS products.
Nov 12 '05 #4
wfs
On the driver I have, there's an option ("Advanced CLI/ODBC Settings -
Service - Patch1 - Describe Timestamps as CHAR(26)' - that may do what you
want.

Bill

"kaming" <gu***@guest.com> wrote in message
news:cs*********@imsp212.netvigator.com...
Thanks Mark!

In fact, I have already downloaded the latest client and using the IBM
ODBC
driver 8.01.08. However, it still not work ..
I have tried a work around by using two fields for time and date and it
works (Access can update or delete a record).
Or is there any trick to do with the ODBC driver??

Thanks!

Henry

"Mark A" <no****@nowhere.com> wrote in message
news:fM********************@comcast.com...
Try downloading the DB2 client (free) and use the IBM supplied driver.
You
want the Runtime client for 32 bit Windows.

http://www-306.ibm.com/software/data...v8.html#WIN-32

Nov 12 '05 #5
wfs points out:
On the driver I have, there's an option ("Advanced CLI/ODBC Settings -
Service - Patch1 - Describe Timestamps as CHAR(26)' - that may do what you


This should allow you to delete. Since there is no TIMESTAMP in MS Access,
you will need to format a character string as a timestamp to update
directly.
Nov 12 '05 #6
I got the same problem with bigint but I can't find a patch for this.

Klemens

"James" <Ja***@someadd.net> schrieb im Newsbeitrag
news:2o********************@comcast.com...
wfs points out:
On the driver I have, there's an option ("Advanced CLI/ODBC Settings -
Service - Patch1 - Describe Timestamps as CHAR(26)' - that may do what
you
This should allow you to delete. Since there is no TIMESTAMP in MS Access, you will need to format a character string as a timestamp to update
directly.

Nov 12 '05 #7
On Sat, 22 Jan 2005 11:00:15 +0800, "kaming" <gu***@guest.com> wrote:
Dear all,

I found that I can't update or delete a DB2 record with timestamp using
Access through ODBC. The Access complains "No current record" while I
attempt to update or delete the record with timestamp.

Do anyone have idea of how to fix this problem?

Thanks in advance!

Henry


I'm really surprised that no one up to now was able to tell you why
this will never work ... DB2 supports fractions of a second to six
decimal places (i.e. microseconds) and Access only goes to a
granularity of one second (no fractions). No patch exists because this
is an impossible thing to do. Access will never be able to distinguish
rows where the difference in timestamp values is less than one second.

The Access DATETIME data type is mapped to the ODBC data type
SQL_TIMESTAMP, but ... no fractions.

Note that MS-SQLServer uses yet another kind of "timestamp" data type
(a kind of AutoNumber automatically generated surrogate key) which has
nothing to do with the ODBC SQL_TIMESTAMP type.

Good luck.

--
Bob Hairgrove
No**********@Home.com
Nov 12 '05 #8

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

Similar topics

3
by: Joe | last post by:
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, ' String data, right truncated on...
6
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...
1
by: Dr X | last post by:
I have a problem updating date values using Java via JDBC-ODBC to Access. <snip rs.updateTimestamp(theIndex,theTimeStamp); rs.updateRow(); <snip> (where theTimeStamp is a valid Java Timestamp...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
8
by: Jimbo | last post by:
I have a form in access 97 that is populated by a query against some sql server tables....when ever the query pulls up only one record im fine..however if it pulls up more than one record i have...
2
by: Joe Fetters via .NET 247 | last post by:
Have googled and read the VS.NET documentation can't seem to getthe answer to the following. Environment: Framework 1.1 VB.NET WinForm Access database Using all automagic tools (DataAdapter...
5
by: wpellett | last post by:
I can not get the SQL compiler to rewrite my SQL UPDATE statement to include columns being SET in a Stored Procedure being called from a BEFORE UPDATE trigger. Example: create table...
8
by: Phil Reynolds | last post by:
We are using SQL Server as a back end to an Access front end on a LAN using ODBC linked tables. Users are periodically getting the "data has been changed by another user" error, and it's causing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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
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...

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.