Hi,
I have a table that stores documents in an image field.
There is a trigger on the table that fires when any updates are made to the other fields in the table. The triger builds up a message and sends an email using xp_sendmail. I want to attach the document that is stored in the image field. I know that I have to pass the document file name to the @atatchments parameter, but how do I get the file out of the image field to attach it?
Thanks in advance
Chris
I have a table that stores documents in an image field.
There is a trigger on the table that fires when any updates are made to the other fields in the table. The triger builds up a message and sends an email using xp_sendmail. I want to attach the document that is stored in the image field. I know that I have to pass the document file name to the @atatchments parameter, but how do I get the file out of the image field to attach it?
Thanks in advance
Chris