Cannot generate SSPI context

 

 Additional error information from SQL Server is included below.  Cannot generate SSPI context.

ConnectionString:'Data Source=sqlxxxxx;Initial Catalog=master;Integrated Security=True;Pooling=False;Asynchronous Processing=False;ConnectTimeout=15'

Cannot connect to database master at SQL server at sqlxxxxx. The database might not exist, or the current user does not have permission to connect to it.
 which manually add the service principle name for each SQL VM, which resolved the issue:

setspn -a MSSQLSvc/<SQLVMName>.cnblogs.com:1433 <SQLVMName>.
setspn -a MSSQLSvc/<SQLVMName>.cnblogs.com <SQLVMName>.

restart the sql services

你可能感兴趣的:(context)