cannot generate SSPI context

  • can anyone help with what causes the following error

    Run-time error '-2147467259 (80004005)':

    cannot generate SSPI context

    it happen when i query the SQL database through an excel macro in a spreadsheet

    Thanks

  • SSPI errors are normally caused by authentication issues where the user who is trying to access the database is not a user in the SQL instance. Other cause could be because the user is logged on to the local machine instead of the domain. I would start with these two and then track from there.

    HTH

  • In many cases I've been able to resolve this by logging into the SQL Server, opening enterprise manager and ensuring the server is registered using the computer name, NOT (local).

    Just delete the registration of local, and readd the server using the name.

    I've made this a best practice in the enterprise.

    This has to be done on the SERVER hosting SQL Server.

  • See if this helps

    http://support.microsoft.com/kb/811889/en-us

  • Check for your connection properties.

    Cheers,
    Sugeshkumar Rajendran
    SQL Server MVP
    http://sugeshkr.blogspot.com

  • Verify that the dates on the client and the server are valid. If the dates are too far apart, your certificates may be considered invalid.

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

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