Re: Store SQL Timestamp locally for comparison
- From: "Brian Wilson" <bwilson@xxxxxxxxxx>
- Date: Thu, 16 Mar 2006 09:03:23 -0000
"DBG" <DBG@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4E691A2C-163F-40E5-86BA-1BE5DA3DF387@xxxxxxxxxxxxxxxx
You do realise that timestamp fields are not really about storing datesYes, I don't care about the actual data of the timestamp.
or
times, but storing a rowversion for the record?
If you have a field of type Timestamp in SQL Server, which type is used
to
hold this in the local table in the mdb file?
I don't want to hold it in a table, I want to hold in a variable form.
Array, variant, whatever. I just don't know the assoicated type to store
it
as.
In other words I don't care what is contained in the timestamp field, I
just
need to know whether or not it is the same - ie has the row been updated
on
the server since the time I downloaded my local copy.
Right, I appreciate that I could use a bit of code like that, but all I
care
about is the MAX value of the timestamp fields. Ie, the value when any
row
in the table was last updated. In this way I can check my local value vs.
the value on the server, to see if anyone has made any changes to any
records
without checking them all.
Thanks for the input so far!
-David
OK I understand what you wish to do, but I would still recommend downloading
the timestamp field into your local Access database. This does not mean
that you have to check every row for changes, you could write a function to
efficiently find out if at least one row in the table has changed.
Assuming you are also using another field as a primary key, this makes a
very powerful combination, because you can now find not only if a table has
been changed, but how many rows and also list all the rows which exist in
one dataset but not in the other (ie records which have been added or
deleted).
.
- References:
- Re: Store SQL Timestamp locally for comparison
- From: Brian Wilson
- Re: Store SQL Timestamp locally for comparison
- Prev by Date: Re: INTERNATIONAL PORTABILITY OF MDE FILES
- Next by Date: Re: Illustrator to Photoshop to Access
- Previous by thread: Re: Store SQL Timestamp locally for comparison
- Next by thread: Re: Store SQL Timestamp locally for comparison
- Index(es):
Relevant Pages
|