Hello,
We have a service that is kicked off by a sqldependency notification. The query associated with the command object is selecting all id's from a table, which is working fine, except I really don't want the service to fire unless a record is inserted that has a certain status. So I would like to add a where statement to the query. Is that allowed? Can I change the query from this:
to this?
Thanks in advance
We have a service that is kicked off by a sqldependency notification. The query associated with the command object is selecting all id's from a table, which is working fine, except I really don't want the service to fire unless a record is inserted that has a certain status. So I would like to add a where statement to the query. Is that allowed? Can I change the query from this:
Code:
SELECT LeadDeliveryLog.LeadDeliveryLogID FROM dbo.LeadDeliveryLog
Code:
SELECT LeadDeliveryLog.LeadDeliveryLogID FROM dbo.LeadDeliveryLog Where LeadDeliveryLog.Status = 'rejected'
Thanks in advance