Generating an email using sp_OACreate 'CDONTS.NewMail' works fine when done via query analyser but does nothing when used in a stored proc. Nothing gets put in the 'pickup' folder.
How are you executing the Store Procedure - from QA, a SQL Agent Job, a DTS package, a client program? Does the execution produce an error message? Does the Stored procedure have error handling?
If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.