xp_sendmail: Cannot generate SSPI context

  • Hello All,

    I am having the following problem:

    When using xp_sendmail along with a query I get this error:

    Server: Msg 17969, Level 16, State 1, Line 0

    xp_sendmail: Unable to login to SQL Server.

    ODBC error 0 (HY000) Cannot generate SSPI context

    However, when using xp_sendmail just to send an email without a query it works just fine. No errors, no problems!

    This problem just started happening. For the year prior to this, the stored procedure that used xp_sendmail ran just fine.

    Any ideas would be appreciated!

    Thanks

  • Does the account you are using to run this query under have permissions to access the objects in the query?

    Also what sql version and service pack are you on.

    Steven

  • Hello Steven,

    I am running Service Pack 3.

    The account used for sqlmail is sysadmin

  • Are you failing on a particular query or is it for all queries?

    K. Brian Kelley, GSEC

    http://www.truthsolutions.com/

    Author: Start to Finish Guide to SQL Server Performance Monitoring

    http://www.netimpress.com/

    K. Brian Kelley
    @kbriankelley

  • It is failing on all queries

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

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