Home All Groups Group Topic Archive Search About

Applying business rules to the database

Author
26 May 2005 1:42 PM
Avi
Hi Experts,



My system stores events into a large table.  I would like to apply some
rules on that table and possibly take action if the rules were satisfied.
For example if a certain event arrives 2 times in 60 seconds then perform an
action.  What is the best way to apply rules to data in the database?  If it
cannot be done with the database itself a recommendation of a third party
tool will be great.  However please not that I cannot use any GUI.  I need
to declare the rules and get the result of the rule into my application
which can be in C++ or C#



Thanks for all the help,

Avi

Author
26 May 2005 1:55 PM
--CELKO--
Have you looked at streaming databases?  Google up BitStream.
Are all your drivers up to date? click for free checkup

Author
26 May 2005 2:03 PM
David Portas
You could use triggers in SQL but if you need to invoke external code
against the database then it's better to put this in a middle-tier
application. In your middle-tier code, poll the table regularly for the
changes based on a date-time stamp column.

--
David Portas
SQL Server MVP
--

Bookmark and Share