RE: SSPI Context

From: Bill Cheng [MSFT] (billcheng@online.microsoft.com)
Date: 12/24/02


From: billcheng@online.microsoft.com (Bill Cheng [MSFT])
Date: Tue, 24 Dec 2002 06:08:37 GMT


Hi Ivan,

"Cannot generate SSPI context" error usually indicates a security issue.
Does your SQL Server support Windows authentication? Is your code in ASP or
console application?

This posting is provided "AS IS" with no warranties, and confers no rights.

Regards,
  
Bill Cheng
Microsoft Support Engineer
--------------------
| Content-Class: urn:content-classes:message
| From: "Ivan Morales" <imorales@aceitesdelmayo.com>
| Sender: "Ivan Morales" <imorales@aceitesdelmayo.com>
| Subject: SSPI Context
| Date: Tue, 17 Dec 2002 16:31:16 -0800
| Lines: 30
| Message-ID: <022801c2a62c$c6d0a6d0$8ef82ecf@TK2MSFTNGXA04>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcKmLMbOg7QESeRJTuOd5pw6/h80BQ==
| Newsgroups: microsoft.public.sqlserver.security
| Path: cpmsftngxa09
| Xref: cpmsftngxa09 microsoft.public.sqlserver.security:9825
| NNTP-Posting-Host: TK2MSFTNGXA04 10.40.1.52
| X-Tomcat-NG: microsoft.public.sqlserver.security
|
| Why I get the following error when I try to open
| database "Cannot generate SSPI context" I'm using SQL
| Server 2000 on windows 2000 server with windows XP Pro as
| client.
|
| This is the code:
|
| cnnSQLServer.ConnectionTimeout = 25
| cnnSQLServer.Provider = "sqloledb"
| cnnSQLServer.Properties("Network
| Address").Value= "192.168.0.12"
| cnnSQLServer.CommandTimeout = 180
|
| cnnSQLServer.Properties("Network Library").Value
| = "dbmssocn"
| cnnSQLServer.Properties("Data Source").Value
| = "MyServerName"
| cnnSQLServer.Properties("Initial Catalog").Value
| = "Northwind"
| cnnSQLServer.CursorLocation = adUseServer
|
| cnnSQLServer.Properties("Integrated Security").Value
| = "SSPI"
|
| cnnSQLServer.Open
|
| Any ideas?,
|
| thanks
|
|



Relevant Pages

  • SSPI Context
    ... database "Cannot generate SSPI context" I'm using SQL ... Server 2000 on windows 2000 server with windows XP Pro as ...
    (microsoft.public.sqlserver.security)
  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • pqv¼Ò¹ÚÇÑ ²Þ@mBGRx
    ... O-009¹Ù¢Ã MS Windows 2000 Datacenter Server -2¸¸¿ø ... Main Application (Borland C++ Builder 6 Enterprise Edition) ... Y-166¢Ã Sex Starved Sluts 1 (Divx) ...
    (FreeBSD-Security)