I have 3 computers on my home network. All Vista Business PCs. My home network is a Workgroup (no domaincontroler at home).
STAR (Workgroup pc)is my home test server which runs SQLExpress 2005. Thus the SQL named instance is STAR\sqlexpress.
MARY (Workgroup pc) is my home test client machine.
JOE (Domain pc) is my personal laptop which I carry every day from home to Work. At work I plug into a large Domain network where I am a Domain Admin.
I have a simple App that uses an SQL db on STAR. db is AddressBk. I use a connection string of
Data Source=STAR\SQLEXPRESS;Initial Catalog=AddressBk;Integrated Security=True;connection timeout=90
MARY can connect fine. JOE can not connect. It fails when loading the star up form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.PeopleTableAdapter.Fill(Me.AddressBkDataSet.People)
End Sub
Error is "Cannot Generate SSPI Context. (Microsoft SQL Server)."
If I try to use SQL Server Managment Studio Express (running on JOE)to connect to "STAR\sqlexpress", I get the same error.
To get MARY working I created a local User on STAR with the same User Name and Password that I normally use on Mary's network login. Then I used SQL Server Management Studio (running on STAR) to add STAR\MARY to the SQL Login list. Mary connects to SQL server & usesmy App justfine.
The problem is I can not Add MYDOMAIN\JOE as a local user on STAR because STAR is a WORKGROUP PC.
Is there a work around? How do I get JOE (a domain pc)to run my App which accesses AddressBk db on STAR which is a Workgroup pc?
==========================================
I did the 6 Steps to Troubleshoot SQL connectivity as follows:
Step 1: I canPING -a STAR andPING -a 192.168.0.7 and both return STAR and a correct IP address.
Step 2: I've used SQL Server Configuration Manager to turn on all three protocols Shared Memory, Named Pipes & TCPIP
Step 3: I turned off the firewall on STAR
Step 4:If I try to use SQL Server Managment Studio Express (running on JOE)to connect to "STAR\sqlexpress", I get the error "Cannot Generate SSPI Context. (Microsoft SQL Server)."
Step 5: it's not an Application error since Mary can connect just fine.
Step 6: Authentication and Logon issue. This appears to be the issue... How do I get JOE (a domain pc)to run my App which accesses AddressBk db on STAR which is a Workgroup pc?
==========================================
Thank you for any help.
Joe A.