Wassim Taher
Wassim Taher

Reputation: 966

Cannot connect to SQL Server 2008 on workgroup network

Two Windows 7 computers connected through network (workgroup) and can ping each other. I have my database on one of them and need the other computer to connect to this database through my window application.

Here's what I have :

Despite all this, I am still not able to connect to SQL Server on the other computer.

Can anybody help please?

Upvotes: 5

Views: 6821

Answers (4)

Maverick
Maverick

Reputation: 1185

Checking to TCP/IP: SQL SERVER Configuration Manager > SQL Server Network Configuration > Protocols for Protocols for > Click >TCP/IP>Double click TCP/IP> IPAddress > all Enable to “YES” > APPLY> OK

Upvotes: 0

user2990854
user2990854

Reputation:

Well, for what its worth, MS has an article on how to configure the ports for SQL server. It assumes you are using the defaults. For the default instance its 1433, but for a named instance, I do this from the command line:

tasklist /svc | find "sql"

whatever the PID is for my named instance, plug it into netstat here

netstat -ano | find "PID HERE"

generally sql server will be listening on 0.0.0.0 which implies ALL adapters/addresses are listening on that port for SQL server. Whatever the port is on that record, that is what needs to be unblocked in the firewall.

here are the instructions from Microsoft which can be used as-is for a default instance, or modified to suit a named instance. http://support.microsoft.com/kb/968872

Upvotes: 0

Wassim Taher
Wassim Taher

Reputation: 966

It turned out to be a Firewall problem. I disabled Firewall and it worked. Even though I have the port opened as a rule, but there is something else in my Firewall which seem to be blocking the connection.

I ended up disabling Windows Firewall and installing another one.

Upvotes: 1

CRAFTY DBA
CRAFTY DBA

Reputation: 14915

If you are on a work group with a PC named SERVER and another PC named CLIENT, you have to choose what security you are going to use. STANDARD vs NT AUTHENTICATION.

First, did you check to see if the server is active on the default port?

Did you try the following commands on the server from a command shell.

cd c:\temp
netstat -a -n -o > netstat.txt

Search for port 1433, is it open and listening?

Second, did you make sure that TCP/IP is enabled for both the server and native client. Disable named pipes. Make sure shared memory is enabled.

enter image description here

I assume you can connect to the engine logged onto the SERVER via SSMS. Correct?

Upvotes: 0

Related Questions