![]() |
Click here to advertise with us
|
|
|||||||
| Database General Discussion General discussion on database related topics |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I've been working on an application for my company, and implementing solutions to small problems along the way has caused me quite a bit of trouble. I'm looking for a quick & dirty way to monitor a MSSQL database for changes. I need to take an image of this database table & at any later, arbitrary point in time, take another image & compare to determine the differences. I know I could do this with the MSSQL event notification services, but this seems a bit too complex for the more simple application I'm creating. What I was thinking about doing was creating a serializable object & a serializable strongly typed collection of this object & saving this to disk to store the current image of the db, then, using a timer, every 5 minutes querying the db for a new copy of this info, then comparing the two to see what's in the new db that wasn't in the original. Can anyone think of a smarter or quicker way to implement this? Any comments would be greatly appreciated! Thanks!! -corteplaneta |
|
|||
|
Haha, well the database table only has ~500 items, and after researching event notification I realized I'd have no idea where to start. If you have any tips I'd be more than glad to pursue that route!
And I don't drink coffee .
Last edited by corteplaneta; 12-02-2008 at 1:15 PM. |
|
|||
|
Thanks MattP and cjard! I've got so little experience with SQL that I didn't even think of using SQL directly. Any idea the the LINQ to achieve the same end result?
I'm kind of irritated that LINQ doesn't allow me to query my strongly typed collections, either (isn't this ALL LINQ should work on!?!?! Strongly typed collections implement IEnumerable by default, do they not?) Last edited by corteplaneta; 12-03-2008 at 7:32 PM. |
|
||||
|
Language Integrated Query - Wikipedia, the free encyclopedia seems to indicate it can? Are you using MyCollectableObjectCollection, or something like List<MyCollectableObject> ?
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|