Hi guys,
I need your opinion on a design. What I need to do is make a program, lets call it Emailer, that will take the messages found in a tblMsgOutbound in an sql and send it out as emails.
There will be programs from the client side that will be placing these messages into tblMsgOutbound.
The Emailer will be a vb program that will constantly check this tblMsgOutbound and take the new ones, send it out and place a copy into another table for history record.
Now I understand that it's not good for the Emailer program to check that tblMsgOutbound every 5 seconds cuz it'll constantly do a lock on that table. What would be the best approach for this?
I have thought of making an insert trigger where tblMsgOutbound will put the message into a text file and the Emailer program will be scanning that directory for any text files. Except, I'm having troubles getting the SQL to do that trigger.
Any other efficient way of doing this?
Thanks y'all!!
I need your opinion on a design. What I need to do is make a program, lets call it Emailer, that will take the messages found in a tblMsgOutbound in an sql and send it out as emails.
There will be programs from the client side that will be placing these messages into tblMsgOutbound.
The Emailer will be a vb program that will constantly check this tblMsgOutbound and take the new ones, send it out and place a copy into another table for history record.
Now I understand that it's not good for the Emailer program to check that tblMsgOutbound every 5 seconds cuz it'll constantly do a lock on that table. What would be the best approach for this?
I have thought of making an insert trigger where tblMsgOutbound will put the message into a text file and the Emailer program will be scanning that directory for any text files. Except, I'm having troubles getting the SQL to do that trigger.
Any other efficient way of doing this?
Thanks y'all!!