Good afternoon.
I am going bananas with this problem. I have a procedure that extracts data and emails it out as an excel spreadsheet. I am reusing BCP code that works within another process and it works beautifully on my computer, but on our production system on any other user machines, it fails. I have logged in as a different user and ran the procedure and get the following message...
Any help would be most appreciated!
Thanks
I am going bananas with this problem. I have a procedure that extracts data and emails it out as an excel spreadsheet. I am reusing BCP code that works within another process and it works beautifully on my computer, but on our production system on any other user machines, it fails. I have logged in as a different user and ran the procedure and get the following message...
Code:
Msg 50001, Level 1, State 50001
xpsql.cpp: Error 1314 from CreateProcessAsUser on line 636
Error: @attachment file "\\SQL\TEMP\LEWIS152280009107302007.xls" does not exist
Server: Msg 50000, Level 16, State 1, Procedure sp_smtp_sendmail, Line 30
Sending message using xp_smtp_sendmail failed
Thanks