Microsoft Data Link Error Cannot Generate Sspi Context
Contents |
360 games PC games
Cannot Generate Sspi Context Sql Server 2008 R2
Windows games Windows phone games Entertainment All Entertainment the target principal name is incorrect. cannot generate sspi context (microsoft sql server) Movies & TV Music Business & Education Business Students & educators
Cannot Generate Sspi Context Fix
Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet odbc sql server driver cannot generate sspi context Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All cannot generate sspi context. (.net sqlclient data provider) Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
connect to local SQL Server outside domain ★★★★★★★★★★★★★★★ SQL Server ConnectivityOctober 19, 200569 Share
Sqlexception (0x80131904): The Target Principal Name Is Incorrect. Cannot Generate Sspi Context.
0 0 The “Cannot system.data.sqlclient.sqlexception: cannot generate sspi context. generate SSPI context” issue is described by http://support.microsoft.com/?id=811889 in general. In this post I will
The Target Principal Name Is Incorrect. Cannot Generate Sspi Context. Sharepoint 2013
discuss one daunting case of “Cannot generate SSPI context” error message when failing to connect to SQL server. In most related cases, customers report https://support.microsoft.com/en-us/kb/811889 this issue as "I can connect to my local SQL Server, but once I connect to my network, I can't connection to my local SQL Server".Such issueis reportedagainst MSDE and SQLExpress. But actually, it can happen with any SKU of SQL Server, including SQL Server 2000 and SQL Server https://blogs.msdn.microsoft.com/sql_protocols/2005/10/19/cannot-generate-sspi-context-error-message-when-connect-to-local-sql-server-outside-domain/ 2005,that support NT integrated authentication. The error message for the failed connection that we discussed here is
[SNAC] “[SQL Native Client]SQL Network Interfaces: The Local Security Authority cannot be contacted.[SQL Native Client]Cannot generate SSPI context”[MDAC] “Cannot generate SSPI context”;[.Net1.0/2.0]” Failed System.Data.SqlClient.SqlException: Cannot generate SSPI context” It can happen when all of followings are true:(1) The hosting machine of SQL Server is connected to a network, including home network or dialup connection, but it is disconnected from its domain.(2) The OS of the hosting machine is Windows XP or 2000. Not windows 2003.(3) The connection is to a local SQL Server.(4) Connection configuration causes network library to choose TCP/IP provider. A scenario that meets all of (1) (2) and (3) looks like an extreme corner case. But the reality is that it is quit often if the hosting machine is a laptop comaccount to run the SQL service. I’m sure you do too! However, once you do the right thing and change the SQL Service account, you may start getting the following error message when attempting https://cmatskas.com/fixing-error-cannot-generate-sspi-context-after-changing-sql-service-account/ to connect to the sql server: “The target principal name is incorrect. Cannot generate http://dba.stackexchange.com/questions/93389/error-cannot-generate-sspi-context SSPI context.” The explanation, as given by Microsoft in this KB article If you run the SQL Server service under the LocalSystem account, the SPN is automatically registered and Kerberos authentication interacts successfully with the computer that is running SQL Server. However, if you run the SQL Server service under a domain account or under a local cannot generate account, the attempt to create the SPN will fail in most cases because the domain account and the local account do not have the right to set their own SPNs. When the SPN creation is not successful, this means that no SPN is set up for the computer that is running SQL Server. If you test by using a domain administrator account as the SQL Server service account, the SPN is successfully cannot generate sspi created because the domain administrator-level credentials that you must have to create an SPN are present. There are 3 ways to fix the problem: Revert to using the Network Service or Local System account (NOT RECOMMENDED) Assign the domain account to the Domain Admins group (NOT IDEAL – due to the elevated permissions) Fix the problem by giving the domain account just the appropriate permissions in Active Directory. Permissions required are ServicePrincipalName: Read ServicePrincipalName: Write We will use the 3rd option to fix the error. First, it is good practice to verify that the problem is actually due to permission issues. Log in to the server where you SQL Instance is running. Go to the error logs and look for the last time that the SQL service was restarted. You should find an error message similar to this: Date 10/17/2013 9:29:50 AM Log SQL Server (Archive #1 - 10/17/2013 10:53:00 AM) Source Server Message The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/servername.domainname.net:1433 ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentic
log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Database Administrators Questions Tags Users Badges Unanswered Ask Question _ Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error: Cannot Generate SSPI context up vote 4 down vote favorite 1 When someone tries to connect to a SQL Server instance, the error shows up: It's not possible do generate SSPI context. Yesterday we had a blackout (don't know how to say this expression in English) and I had to shut down our servers. Looking for answers, I found this: SQL Server 2008 connectivity issue : cannot generate SSPI context But it doesn't help me, because they're working fine until yesterday. I don't want to change anything. But if a have to, I will change it. Obs: I can't restart the server now. Edit: Since I my answer, we haven't had any errors. sql-server sql-server-2008 authentication errors connectivity share|improve this question edited Aug 30 '15 at 13:06 Paul White♦ 29.7k11167267 asked Feb 20 '15 at 11:14 Rafael Piccinelli 1,490630 I've had this problem sorted by forcing a time reset from the server, all machines in the group policy span will go back to server time and then error its gone... Although thats my particular case, you can try =). –Nelson Casanova Feb 20 '15 at 11:37 Hello. Thats the problem. I can't restart the server, we have more than 500+ users online. I really can't figure out what to do. There's nothing usefull on the internet. –Rafael Pi