SQL 2000 - sp_send_cdosysmail - Attachment Error

  • Using below code to send mail with attachment.

    EXEC sp_send_cdosysmail

    @From ='Test@abc.com' ,

    @To = 'Test@abc.com' ,

    @Subject ='Test Mail',

    @Body ='Test Body,

    @attachments ='C:\Test.xls'

    I get the below error. But I get the attachment in mail. So should i have to concerned about the below error?

    Msg 0, Level 11, State 0, Line 0

    A severe error occurred on the current command. The results, if any, should be discarded.

  • If you are using the example for cdosysmail that MS provided, you may need to make some changes. Here is a thread that appears to be down the same avenue you are facing.

    http://www.sqlmonster.com/Uwe/Forum.aspx/sql-server-programming/50283/object-output-on-sp-OAMethod-causing-errors

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Do we have any other way.. to fix this? The link has code which has BCC etc. which is not needed. A basic mail parameters are fine.

  • Do you have access to your cdosysmail proc to make the change that is necessary in the output?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply