Link to home
Start Free TrialLog in
Avatar of Cromwellhospital
CromwellhospitalFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Cant connect to SQL Express Edition Witness

Hi,
I have implementing Database mirroring with two standard windows 2003 (64bit) servers running 2005 sql (64 bit). I have installed a SQL Express Edition on my Windows XP SP2 PC to act as a witness. But, when I try to connect to the witness PC from SQL Mgmt Studio from the principal server, it comes back with a an error saying that "By default, remote connections will be disabled, Microsoft SQL Server Error 2.

Can someone help. I tried everything in the following link
http://www.cryer.co.uk/brian/sqlserver/hresult_0x2%20npp_error_establishing_connection.htm
Thanks.
Avatar of Nightman
Nightman
Flag of Australia image

1. Try disabling windows firewall first to see if that is blocking connectivity.
2. Check that TCP is enabled, and running.
3. Can you connect from another machine?
Avatar of Cromwellhospital

ASKER

Firewall is disabled, TCP is enabled
I can ping my XP machine, but can't connect from SQL Mgmt Studio.
1. Have you enabled the remote connections using the Surface Area Configuration?
2. Are you connecting to a named instance or the default instance?
3. Are you connecting with windows authentication, and are the machines all on the same domain?
4. I am assuming that you can connect from Management Studio on the XP machine. Please can you confirm this.
5. can you telnet onto the TCP port on the XP "server" from one of the other servers?
I have enabled remote connections using SA Config
Default instance
Windows Authentication
Telnet on port 1433 onto the XP machine fails
And, how can I get Mgmt Studio in the XP machine? All I have is Configuration Tools.
You can download the Management Studio for Express from Microsoft (alternatively, you should be able to install the 32-bit Client Tools from the SQL Server Media).

Is SQL running on port 1433 on the XP box? It may not be, so you need to confirm this.
The TCP/IP is enabled and the properties says that it is looking at port 1433.
If remote connections and TCP are enabled, and you can't even telnet to the port, then that suggests incorrect instance name, network connectivity or permissions.
The instance name is sqlexpress on the express edition and I can ping the XP machine and I am trying to connect using a domain admin account !!!
I understand that. But the fact that you can't telnet to the port suggests that the either the service is not running, TCP is not enabled or there is something blocking the connection (such as windows firewall).
I installed Mgmt Studio for SQL Express Edition in XP machine and I can't connect to the same instance. It throws the same error.

 "By default, remote connections will be disabled, Microsoft SQL Server Error 2.
1. Check to see if the SQL Service is running
2. Is named pipes enabled?
3. Are you connecting to MACHINENAME\SQLExpress (named instance)?
Its connecting now both ways. But, when I try to add the witness, this error comes up

microsoft sql server, error 1498
Is that the entire error message?
Sorry - You are using the RTM version of SQL 2005 in which does not support mirroring.

Install SP1.
And, I have installed SP1 for Express Edition.
ASKER CERTIFIED SOLUTION
Avatar of Nightman
Nightman
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial