5

I have SQL Server 2008 R2 Express installed on a PC.

I have some other PCs that are connected to this PC on a local network.

Currently, those PCs connect to SQL Server using SQL Authentication, however I want them to connect to SQL Server using Windows Authentication.

We don't have an Active Directory domain. All PCs are part of the "WORKGROUP" workgroup.

Hannah Vernon
71.1k22 gold badges178 silver badges323 bronze badges
asked Apr 10, 2013 at 7:48
0

1 Answer 1

3

If none of the machines involved have Active Directory authentication enabled via Kerberos, which precludes using an online-based Microsoft Account (Windows 8 and higher), you should be able to connect to SQL Server using Windows Authentication assuming you follow these points:

  1. Ensure SQL Server is configured to use TCP connections.
  2. Ensure the Windows firewall is either disabled or has SQL Server connections allowed.
  3. The machine where SQL Server is installed needs Windows user accounts for all the people who will be connecting via the network. For instance, if the SQL Server computer is named MyPC, and you have User1, User2, and User3 who will be using the SQL Server, MyPC must have accounts setup for User1, User2, and User3 with the same password those user accounts use on their own PC.
  4. You create logins in SQL Server for those user accounts, i.e.:

    CREATE LOGIN [MyPC\User1] FROM WINDOWS;
    CREATE LOGIN [MyPC\User2] FROM WINDOWS;
    CREATE LOGIN [MyPC\User3] FROM WINDOWS;
    
  5. The client machines may need to connect to the server using the server's IP address instead of it's name. If the server's IP address is 192.168.0.100, and it is listening on port 33333 then they would use this as the server name to connect to:

    tcp:192.168.0.100,33333
    

If you follow all the above advice, then receive the following error when connecting, then the client PC is using Kerberos authentication, and nothing will help you connect.

The target principal name is incorrect. Cannot generate SSPI context.

answered Apr 26, 2018 at 17:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.