Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Cannot generate SSPI context

$
0
0

I have looked and googled and whatnot about this error for a while now and cant seem to find anything that worked.  Im using access 2013 as a front end to our database and sql 2012 on a vm as the back end. It works fine most of the time cept users and myself, the connection will just drop right in the middle of something and then we will get this error. From what I read others are getting it right when they start up their database, ours is random.

Iv ran this query in my sql

SELECT auth_scheme FROM sys.dm_exec_connections WHERE session_id = @@spid ;

and it returned NTLM. Everwhere I read I should be using Kerberos for authentication and that I need to register an SPN so I ran this in the cmd prompt

setspn -a mssqlsvc/<server name>:1433 <domain name\administrator>

and it said it registered. But doing this I got the same connection error every time my database was started up. Cantt get into it at all. So I ran

setspn -d mssqlsvc/<server name>:1433 <domain name\administrator>

to get rid of it and it worked fine. But of course im back where I started. Im pretty new to sql but this connection dropping and having to log out and then back into our domain is getting old fast. Any help would be appreciated, thanks.



Viewing all articles
Browse latest Browse all 1519


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>