View Single Post
  #1 (permalink)  
Old 12-01-2008, 9:54 AM
corteplaneta corteplaneta is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Nov 2008
Age: 26
Posts: 10
Reputation: 19
corteplaneta is on a distinguished programming path ahead
Default Inefficiently Monitor SQL Database

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
Reply With Quote