Cannot connect to Microsoft SQL Server on network



Similar documents
1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Immotec Systems, Inc. SQL Server 2005 Installation Document

TimePunch SQL Server Database Guide

Configuring Your Firewall for Client Access in Professional Edition

QUANTIFY INSTALLATION GUIDE

Migrating MSDE to Microsoft SQL 2008 R2 Express

Upgrade ProTracker Advantage Access database to a SQL database

ilaw Server Migration Guide

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Basic instructions for configuring PPP MSSQL Express Firewall Settings for Server 2008 and Windows 7 Operating Systems

Knowledge Base Article: Article 218 Revision 2 How to connect BAI to a Remote SQL Server Database?

ilaw Installation Procedure

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

TestElite - Troubleshooting

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

NovaBACKUP xsp Version 15.0 Upgrade Guide

Install SQL Server 2014 Express Edition

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Creating a New Database and a Table Owner in SQL Server 2005 for exchange@pam

To install the SMTP service:

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Important Notes for WinConnect Server VS Software Installation:

BusinessObjects Enterprise XI Release 2

EntroWatch - Software Installation Troubleshooting Guide

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

TN Installing PV4E 6.0 under Windows Server 2008 (R2) (3264 Bit) and Remote DB Support

Table of Contents. FleetSoft Installation Guide

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

INSTALLING SQL SERVER 2012 EXPRESS WITH ADVANCED SERVICES FOR REDHORSE CRM

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Project management - integrated into Outlook

Setting up an MS SQL Server for IGSS

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

SQL Server 2008 R2 (Pubs, Subs, and Other Replication Appetizers)

Print Manager Plus 2010 How to Migrate your Database to a New SQL or Print Server

Microsoft SQL Server 2008 R2 (64-bit) Standard Edition Installation Guide

NetSupport DNA Configuration of Microsoft SQL Server Express

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

NetSupport DNA Configuration of Microsoft SQL Server Express

Aradial Installation Guide

Installing SQL Express. For CribMaster 9.2 and Later

Jolly Server Getting Started Guide

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Moving the TRITON Reporting Databases

enicq 5 System Administrator s Guide

These notes are for upgrading the Linko Version 9.3 MS Access database to a SQL Express 2008 R2, 64 bit installations:

Nexio Connectus Cluster Set Up with SQL Server Backend

WhatsUp Gold v16.3 Installation and Configuration Guide

NovaBACKUP xsp Version 12.2 Upgrade Guide

PigCHAMP Knowledge Software. Enterprise Edition Installation Guide

Video Administration Backup and Restore Procedures

SQL Server 2008 and SSL Secure Connection

Appendix L: Running Hazus-MH with SQL Server 2005

Microsoft SQL Server 2008 R2 Express Edition with Advanced Services Installation Guide

Microsoft SQL Server Security Best Practices

Installation Instruction STATISTICA Enterprise Small Business

DC Agent Troubleshooting

TMS Database Knowledge Tips

Installation Instruction STATISTICA Enterprise Server

Cloud Services ADM. Agent Deployment Guide

Avatier Identity Management Suite

Troubleshooting Guide

INSTALLING MOODLE 2.5 ON A MICROSOFT PLATFORM

Network/Floating License Installation Instructions

SQL Tuning and Maintenance for the Altiris Deployment Server express database.

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

SQL EXPRESS INSTALLATION...

Important Notes for WinConnect Server ES Software Installation:

Active Directory Reporter Quick start Guide

TecLocal 4.0 MultiUser Database

Quick Connect. Overview. Client Instructions. LabTech

How to Backup and FTP your SQL database using E2.

WhatsUp Gold v16.1 Installation and Configuration Guide

Technical Bulletin. SQL Express Backup Utility

Microsoft SQL Server Installation Guide

Print Audit 6 - SQL Server 2005 Express Edition

Changing Your Cameleon Server IP

Automated backup. of the LumaSoft Gas database

How To Install A New Database On A 2008 R2 System With A New Version Of Aql Server 2008 R 2 On A Windows Xp Server 2008 (Windows) R2 (Windows Xp) (Windows 8) (Powerpoint) (Mysql

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Enterprise Server Setup Guide

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

Nagios XI Monitoring Windows Using WMI

How to Copy A SQL Database SQL Server Express (Making a History Company)

SafeCom Smart Printing Administrator s Quick Guide

TECHNICAL SUPPORT GUIDE

Dokmee Enterprise Installation

SteelEye Protection Suite for Windows Microsoft SQL Server Recovery Kit. Administration Guide

TROUBLESHOOTING GUIDE

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

Building the SAP Business One Cloud Landscape Part of the SAP Business One Cloud Landscape Workshop

ecopy ShareScan 5.0 SQL installs guide

Setup and configuration for Intelicode. SQL Server Express

Configuring Network Load Balancing with Cerberus FTP Server

Active Directory Manager Pro Quick start Guide

Transcription:

Cannot connect to Microsoft SQL Server on network Symptom When you try to connect to an instance of Microsoft SQL Server 2005 from a remote computer, you may receive one of the following error messages: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error 28 - Server doesn't support request protocol) (Microsoft SQL Server)" "Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft: SQL Server. Error: 18452)" Possible Causes 1.This problem may occur when SQL Server 2005 is not configured to accept remote connections. By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections. Refer to Enabling Remote Connections. 2.Windows Firewall on Windows Server 2005 helps prevent unauthorized access to computer resources. However, if the firewall is configured incorrectly, attempts to connect to an instance of SQL Server may be blocked. To access an instance of SQL Server that is behind the firewall, you must configure the firewall on the computer that is running SQL Server. Resolution Refer to Configuring Windows Firewall.» Enabling Remote Connections Verify that both SQL Server and Windows Authentication modes are enabled. 1.Log into SQL Server Management Studio Express on local SQL Server with Windows Authentication user. 2.In Object Explorer, right-click on the instance name and select Properties. 3.On the left, select Security and change Server Authentication to SQL Server and Windows Authentication and click OK. 4.A pop-up will appear advising that SQL Server must be restarted for the changes to take effect. Click OK. 5.In Object Explorer, right-click on the instance name and select Restart. 1 / 5

6.Click Yes at the verification pop-up. 7.Wait for the service to stop and start. Verify that remote connections are enabled in SQL Server Surface Area Configuration. 1.Open SQL Server Surface Area Configuration. 2.Under Configure Surface Area for [computername], select Surface Area Configuration for Services and Connections. 3.On the left side, expand your SQL Service Instance» Database Engine» Remote Connections. 4.On the right side, select Local and Remote Connections and Using Both TCP/IP and Named Pipes. 5.On the left side, expand SQL Server Browser» Service. 6.On the right side, if the startup type is Disabled, change it to Automatic, click Apply, and then click Start to initiate the service. Click OK. Check whether the problem is fixed by trying to access the not fixed, proceed to Configuring Windows Firewall.» Configuring Windows Firewall SQL Server 2005 uses an instance ID as part of the path when you install its program files. To create an exception for each instance of SQL Server, you must identify the correct instance ID. To obtain an instance ID, follow these steps: Step 1 1.Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager. 2.In SQL Server Configuration Manager, click the SQL Server Browser service in the right pane, right-click the instance name in the main window, and then click Properties. 3.On the SQL Server Browser Properties page, click the Advanced tab, locate the instance ID in the property list, and then click OK. Step 2 1.To open Windows Firewall, click Start, click Run, type firewall.cpl, and then click OK. 2.In Windows Firewall, click the Exceptions tab, and then click Add Program. 3.In the Add a Program window, click Browse. 4.Click the C:\\Program Files\\Microsoft SQL 2 / 5

Server\\MSSQL.1\\MSSQL\\Binn\\sqlservr.exe executable program, click Open, and then click OK. Note: The path may be different depending on where SQL Server 2005 is installed. MSSQL.1 is a placeholder for the instance ID that you obtained in step 3 of the previous procedure. Repeat 1-3 for each instance of SQL Server 2005 that needs an exception. 5.From the Exceptions tab, click Add Program again. 6.In the Add a Program window, click Browse. 7.Click the C:\\Program Files\\Microsoft SQL Server\\90\\Shared\\sqlbrowser.exe executable program, click Open, and then click OK. Note: The path may be different depending on where SQL Server 2005 is installed. 8.From the Exceptions tab, click Add Port. 9.In the Add a Port window, enter SQL Port 1433 for the Name. 10.Enter 1433 for the Port Number. 11.If not already checked, select the radio for TCP and then click OK. 12.From the Exceptions tab, click Add Port. 13.In the Add a Port window, enter SQL Port 1434 for the Name. 14.Enter 1434 for the Port Number. 15.If not already checked, select the radio for TCP and then click OK. Check whether the problem is fixed by trying to access the not fixed, contact support. Option 2: Manually Enter Script to Open Firewall Ports 1.Launch/Open your Notepad application. 2.Copy and paste the following code into Notepad: @echo ========= SQL Server Ports =================== @echo Enabling SQLServer default instance port 1433 netsh firewall set portopening TCP 1433 "SQLServer" @echo Enabling Dedicated Admin Connection port 1434 netsh firewall set portopening TCP 1434 "SQL Admin Connection" 3 / 5

@echo Enabling conventional SQL Server Service Broker port 4022 netsh firewall set portopening TCP 4022 "SQL Service Broker" @echo Enabling Transact-SQL Debugger/RPC port 135 netsh firewall set portopening TCP 135 "SQL Debugger/RPC" @echo ========= Analysis Services Ports ============== @echo Enabling SSAS Default Instance port 2383 netsh firewall set portopening TCP 2383 "Analysis Services" @echo Enabling SQL Server Browser Service port 2382 netsh firewall set portopening TCP 2382 "SQL Browser" @echo ========= Misc Applications ============== @echo Enabling HTTP port 80 netsh firewall set portopening TCP 80 "HTTP" @echo Enabling SSL port 443 netsh firewall set portopening TCP 443 "SSL" @echo Enabling port for SQL Server Browser Service's 'Browse' Button netsh firewall set portopening UDP 1434 "SQL Browser" @echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK) netsh firewall set multicastbroadcastresponse ENABLE 3.Save the file as a.txt file by using the following name: OpenSqlServerPort.txt 4.Rename the OpenSqlServerPort.txt file to the following: OpenSqlServerPort.bat Before you run the OpenSqlServerPort.bat script, you must copy the script to the computer that has the firewall, and then run the script on that computer. To run the script, follow these steps: 1.Click Start, click Run, type cmd, and then click OK. 2.At the command prompt, use the cd command to navigate to the folder in which you saved the OpenSqlServerPort.bat file. 3.To run the OpenSqlServerPort.bat script, type OpenSqlServerPort.bat at the command prompt, and then press ENTER. 4.Check whether the problem is fixed by trying to access the not fixed, proceed to Option 3. 4 / 5

Powered by TCPDF (www.tcpdf.org) Option 3: Add SQL Server Executable to Blocked Exceptions 1.In the Windows Firewall dialog box, on the Exceptions tab, click Add Program. 2.Click Browse, and navigate to the instance of SQL Server that you wish to access through the firewall, and then click Open. By default SQL Server is at C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Binn\\Sqlservr.exe. 3.Click OK twice to close the Windows firewall program. 4.Check whether the problem is fixed by trying to access the not fixed, contact support. Use this method when your SQL Server uses dynamic ports. Only one instance of SQL Server can be accessed in this way. 5 / 5