PC Review


Reply
Thread Tools Rate Thread

How to Determine records updated/changed

 
 
=?Utf-8?B?RXN0ZWJhbjQwNA==?=
Guest
Posts: n/a
 
      6th Jan 2005
I have a MS SQL2000 database from which I pull records for unattended kiosk
display. How can I test the active records to determine if they've changed or
have been added since the last time a dataset was created? I started building
a hash table to store the record id and last edit timestamp, but that seems
too much. I'm not a SQL server guy.

TIA,

E.
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      6th Jan 2005
Esteban,

Do you want to know:
- if there are changes in the datasest which is easy (ds.HasChanges)
- or where the there are records in the database where is the timestamp
newer than the datetime you created your dataset the last time.

The problem with the last is that you (normally) cannot find removed rows in
a database, so you have to reload your last dataset anyhow in one or the
other way to compare that or just take the new one after you have updated it
(and did all concurrency checking etc).

Cor

"Esteban404" <(E-Mail Removed)>

>I have a MS SQL2000 database from which I pull records for unattended kiosk
> display. How can I test the active records to determine if they've changed
> or
> have been added since the last time a dataset was created? I started
> building
> a hash table to store the record id and last edit timestamp, but that
> seems
> too much. I'm not a SQL server guy.
>
> TIA,
>
> E.



 
Reply With Quote
 
=?Utf-8?B?RXN0ZWJhbjQwNA==?=
Guest
Posts: n/a
 
      6th Jan 2005
Hi Cor,

ds.HasChanges won't work. The records are not being edited. They are being
read only as a display source in a kiosk (no user interaction).

I thought there might have been some attribute flag or SQL voodoo way to get
the server to do it for me. I'll work up a dataset load to do it.

Thanks for the suggestions, Cor. I'm set until the next bump in the road.

E.

"Cor Ligthert" wrote:

> Esteban,
>
> Do you want to know:
> - if there are changes in the datasest which is easy (ds.HasChanges)
> - or where the there are records in the database where is the timestamp
> newer than the datetime you created your dataset the last time.
>
> The problem with the last is that you (normally) cannot find removed rows in
> a database, so you have to reload your last dataset anyhow in one or the
> other way to compare that or just take the new one after you have updated it
> (and did all concurrency checking etc).
>
> Cor
>
> "Esteban404" <(E-Mail Removed)>
>
> >I have a MS SQL2000 database from which I pull records for unattended kiosk
> > display. How can I test the active records to determine if they've changed
> > or
> > have been added since the last time a dataset was created? I started
> > building
> > a hash table to store the record id and last edit timestamp, but that
> > seems
> > too much. I'm not a SQL server guy.
> >
> > TIA,
> >
> > E.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Automatic Overwriting Records in Access 2007 With Updated Records from New File Douglas J. Steele Microsoft Access Forms 0 15th Mar 2009 09:37 PM
Help, Copy Records, change dates on records, save new updated reco =?Utf-8?B?Y2NfY3Jhc2g=?= Microsoft VB .NET 0 24th May 2007 01:29 PM
newbie: how to determine dupe/updated records from import Andrew L. Microsoft Access 1 3rd Dec 2005 06:25 PM
How to determine that rows on server changed and dataset needs to be updated ? Grigol Avetikov Microsoft ADO .NET 2 26th Apr 2004 03:05 PM
How to determine number of updated record? Wilen Microsoft Access Queries 1 25th Oct 2003 06:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.