Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / August 2005



Tip: Looking for answers? Try searching our database.

Cannot generate SSPI context; SQLServer 2000/MgtConsole SP3, VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L Mehl - 27 Aug 2005 21:56 GMT
Hello --

Is this the right group for this question?

This error appears, after many months of using the same code (below) to
connect:

"Error -2147467259 (Cannot generate SSPI context) "

------------------------------------------------------------
strDb = "provisioning"
Set mcon = New ADODB.Connection
strConLogin = "Provider=SQLOLEDB.1;" & _
   "Integrated Security=SSPI;" & _
   "Persist Security Info=False;" & _
   "Initial Catalog=" & strDb
With mcon
   .ConnectionString = strConLogin
   .Open
End With
------------------------------------------------------------

For a while it appeared after using a TRENDnet TFM-560U USB modem to connect
(while I was switching DSL providers) and not rebooting after starting SQL
Server.
The problem went away after using DSL, and re-appeared today.

Does anyone know whay my problem is?

Thanks for any help.

Larry Mehl
Douglas J. Steele - 28 Aug 2005 11:56 GMT
Try going to
http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1 and
doing a search on the exact phrase "Cannot generate SSPI context" (without
the quotes).

You should get a number of hits. Since you haven't given enough details, I
can't tell which is appropriate in your case.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hello --
>
[quoted text clipped - 29 lines]
>
> Larry Mehl
L Mehl - 29 Aug 2005 00:18 GMT
Thanks Doug.

You ar right ... many hits.
It seems to be:
- a clock time problem between server and client (confusing because both are
on my laptop), or
- needing to run setspn to delete any spn on my machine.

Larry

> Try going to
> http://search.microsoft.com/search/search.aspx?view=msdn&st=a&c=0&s=1 and
[quoted text clipped - 42 lines]
> >
> > Larry Mehl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.