![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
"Bob Barrows" <reb01501 (AT) NOSPAMyahoo (DOT) com> wrote in news:ivvqb6$e26$1 (AT) dont-email (DOT) me: David-W-Fenton wrote: "Bob Barrows" <reb01501 (AT) NOSPAMyahoo (DOT) com> wrote in news:ivq3db$jpk$1 (AT) dont-email (DOT) me: David-W-Fenton wrote: I don't believe that an Access developer should be using ADO for anything at all, except the tiny number of things that ADO can do and DAO can't. Like this one? :-) I don't know what you're referring to. Umm, the reason this thread began? The inability of DAO to open a recordset containing a timestamp field? :-) But that's not really true. I have an Access app running against SQL Server 2008 R2 and it opens recordsets with timestamps (all the tables have timestamps in them). Or, I assume it does. In general, I don't use recordsets for operations that would benefit from including the timestamp field, so I'd likely not include it. Frankly, I'd question the need to use a DAO recordset in a fashion that requires the timestamp. |
#22
| |||
| |||
|
|
The OP stated that he did not really nead the timestamp field. He got it (or attempted to get it) because he used selstar instead of naming the fields he wanted to retrieve, discovering in the process that DAO refused to open the recordset. |
#23
| |||
| |||
|
|
James A. Fortune wrote: On Jul 13, 6:38 am, "Bob Barrows" <reb01... (AT) NOSPAMyahoo (DOT) com> wrote: but TimeStamp aka RowVersion fields are strongly recommended for use by Access when going against SQL Server backends. It saves Access from having to examine each field individually when doing updates to see if someone/thing else has changed a field in the record. ... but incorrect. You're talking about linked tables, right? When using DAO or ADO to retrieve data from the backend, it's no longer Access that will be checking the timestamp column for changes, it is now up to the developer. I think my point still stands about displaying the field to the user. It is not intended to be useful to or editable by the end user. See: http://groups.google.com/group/micro...msg/e88f75345b... It appears that it is all done seamlessly without any action by the developer. *I agree that users don't need to see the TimeStamp/ RowVersion value. *It looks like all the fields will be checked for changes if that field is missing. Again, the white paper is talking about behaviour with linked tables: "This paper focuses on the challenges encountered by Office Access developers who rely on the Office Access (Jet) database engine to connectto SQL Server over ODBC. The most common way this is done is by creating linked tables in Office Access that use the SQL Server ODBC driver to connect to tables in SQL Server databases." I may be wrong but I do believe that all of that none of that happens when using DAO to open or update a recordset. I'm not sure how it could if DAO bombs when opening a recordset containing a timestamp field, as occurs to the OP. |
![]() |
| Thread Tools | |
| Display Modes | |
| |