Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Sybase and record has been modified by another user problems when using datetime fields


I have a table in a Sybase database (version 0.x or .x) that has a datetime field. I was able to use/edit data in this table until I applied a patch to my Sybase client (versions affected below). Now after applying the patch, whenever I attempt to update records that were written to the table with the unpatched client I get the error "record has been modified by another user". What is wrong?   

    Obtaining the latest version of SQLSSC32.DLL will resolve this problem. Below is a detailed explanation of this problem for earlier versions of SQLSSC32.DLL.

    As of Open Client Version . . , CT-Lib now uses a small datetime as it's default. (A small datetime keeps year, month, day, hour & minute). This means that the . . client will not even attempt to send second and millisecond data to the server when you post a record. The problem is that if the data was written with second and millisecond precision then we have no way of reselecting it using Open Client . . . (for example :30:23. doesn't equal :30:00.000) In versions eariler than this (for example . .0) CT-Lib used long datetime as it's default. (A long datetime keeps everything a small datetime does plus seconds and milliseconds). As a result when you upgrade your Sybase client you begin to see this problem.

    One possible workaround is to change your Update Mode to be WhereKeyOnly or WhereChanged but if the datetime field is part of the key or you change the value of the datetime field you will still see this problem. You could also use small datetime fields when you are designing your tables and avoid this problem entirely. We are aware of this problem and we are looking in to possible solutions.

    versions affected: Open Client .5, . . , . with ebf7398 applied, 0 with ebf7438. 3/26/99 0:44:29 AM

     



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use