Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use Server Date/Time
Message
From
16/04/2010 14:00:57
 
 
To
15/04/2010 06:13:46
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01460122
Message ID:
01460607
Views:
34
Actually Strataframe has the option of using a rowversion int for table built into the business object's collision handling and I've taken to using that.

>>>>Because the server is where the data is and is the only constant. Workstations may have different times either because their clocks aren't synced with the server or because they are located in different time zones. But server time means something to the database itself and will not depend on who generated the timestamp.
>
>>>That I understand and agree with. What I was questioning was why every table should include a last-updated column.
>
>>Collision detection? Why shouldn't it? It is a timestamp, no? Based on datetime but not actually a datetime.
>
>Here I disagree on the method - reason is my guesstimate of the "stability" of the abovebolded. For collision detection / update / backup needs I prefer a lastWriteCount column based on 8byte integer for the whole table. IMHO are the dangers of corruption of the "constant sources" smaller on a system table counting the writes to each table and the minmal danger of count roll over (you would have to write A LOT of times to the rows involved) and possibly needed fixes compared to a server getting a wrong time set - that is for most biz apps, not speaking of rollover tables used in automatic high speed measurements. It is a hit on possible write speed, but most apps I am involved with are not problematic in the write-area. Both methods have their drawbacks...
>
>Changetime and ChangeUser are most of the times useful and should be implemented just as a precaution against future needs and consistent table design if not needed already IMHO. CreateTime and CreateUser I implement either for all or none of the tables as well: sometimes there is no biz value in such fields.
>
>my 0.02 EUR
>
>thomas


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform