Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to retrieve info on latest write to a table?
Message
De
07/10/2002 11:26:20
 
 
À
06/10/2002 08:37:57
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00707680
Message ID:
00708382
Vues:
21
The only automatic to detect that a row was changed is with a timestamp. Sadly, the timestamp has nothing to do with dates and times. It's just a rolling number.

Most people add two columns to the row like updatedOn and UpdatedBy, which are filled in by either a trigger or explicit code.

-Mike

>I'm not sure I understand -
>
>In my VFP screen I'd like to inform the user that the data from the SQL server table that (s)he's looking at was last updated at 2002.10.10 22:00
>
>There is no row in the table that could provide this info, and I have no influence on the DB design, so I'm not likely to get one.
>
>>Either create a trigger to update a column on the row or have your stored procedure do it.
>>
>>-Mike
>>
>>>There's bound to be a way to determine the date / time of the latest update to a table, and I did search, but so far with no luck.
>>>
>>>So, help is truly appreciated.
>>>
>>>TIA
>>>
>>>Peter
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform