Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
vibhav
Starting Member
28 Posts |
Posted - 2008-01-31 : 12:19:10
|
| I have a SQL table with user accounts and another application reads from this table.This table contains the moddate column for each record as well.However should I need to set any last modified flags such that the application reads or picksup only the changes after it read last time?Any suggestions please.Thanks. |
|
|
tprupsis
Yak Posting Veteran
88 Posts |
Posted - 2008-01-31 : 23:16:07
|
| If I understand your question correctly, all you need to do is set moddate = getdate() when you update existing records or insert new records. Then you'll be able to select all records with moddate > your last read date/time. Let me know if I misunderstood. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-01-31 : 23:57:46
|
| You can set a default on modadte field to GETDATE() for this. Also you need to make sure you have application run datetime stored somewhere to compare against table records datefield. |
 |
|
|
|
|
|