Ошибка sql server 11001

Ошибка Microsoft SQL Server: 53 или ошибка Microsoft SQL Server: 11001 или ошибка SQL Server 53 и 40. Ошибки SQL server 53 и 17

Подробности ошибки:

Не удается подключиться к ошибке SQL Server, которая может быть номером ошибки: 11001 или номером ошибки: 53, серьезностью: 20, состоянием: 0 или ошибкой SQL Server 53 и 40. Ошибки SQL server 53 и 17

При установлении соединения с SQL Server произошла ошибка, связанная с сетью или конкретным экземпляром. Сервер не был найден или не был доступен. Убедитесь, что имя экземпляра указано правильно и что SQL Server настроен на разрешение удаленных подключений.

Ошибка подключения
Состояние SQL ‘01000’
Ошибка SQL Server 53
[microsoft] [драйвер ODBC SQL Server] [DBNETLIB]соединение открыто
Ошибка подключения
SQL State ‘ 08001
Ошибка SQL 17
[microsoft] [драйвер ODBC SQL Server] [DBNETLIB]SQL Server не существует или доступ запрещен.

(поставщик: поставщик именованных каналов, ошибка: 40-не удалось открыть соединение с SQL Server) (Microsoft SQL Server, ошибка: 53)

(provider: TCP Provider, error: 0 — No such host is known.) (Microsoft SQL Server, Error: 11001)

причины ошибок:

Эта ошибка возникает, когда SQL Server не может быть найден в Сети, что означает либо IP-адрес недоступен, либо номер TCP-порта либо не открыт, либо не является правильным номером порта, либо заблокирован брандмауэром и т. д

Решение:

Приведенные ниже шаги помогут устранить эти проблемы

1.Проверьте, можете ли вы пинговать сервер
2.Проверьте, открыт ли брандмауэр для подключения
3.Проверьте, работает ли служба SQL Server и если именованный экземпляр, то служба браузера
4.Проверьте, включен ли протокол TCP / IP в диспетчере конфигурации SQL Server
5.Проверьте, установлен ли в свойствах SQL Server параметр “Разрешить удаленные подключения” на уровне экземпляра

Дополнительная информация ниже:

Для экземпляра по умолчанию используется порт TCP / IP 1433, но это может быть изменено вручную. Поэтому пожалуйста проверьте TCP IP порт все еще находится на уровне по умолчанию 1433

Щелкните правой кнопкой мыши на TCP / IP и выберите пункт Свойства.
Прокрутите вниз до IPAll.
Убедитесь, что динамические порты TCP пусты.
Убедитесь, что TCP-порт установлен на 1433.

Для именованного экземпляра установки SQL Server должна быть включена и запущена служба браузера, которая определяет номер порта SQL Server. Служба SQL browser работает на порту UDP 1434 и это должно быть разрешено через ваш брандмауэр

Ошибка запуска службы SQL server 1053

Ошибка 1053: служба не ответила на запрос запуска или управления своевременно.»Тайм-аут (30000 миллисекунд) ожидания подключения службы SQL Server (MSSQLSERVER).

Пожалуйста, попробуйте перезагрузить ваш сервер / компьютер, чтобы убедиться, что он будет работать.

SQL server error 11001 occurs when the SQL Server can’t be found on Network.

This happens if the IP address is not reachable or the TCP port number is either not open or is not the correct port number or is blocked by a firewall

Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at the cause for this error and how to fix it.

Why does SQL server error 11001 occur

Now let’s look into what causes this error to occur

1. This error mainly occurs when the SQL Server client can’t connect to the server. This may happen when the client cannot resolve the name of the server or the name of the server is incorrect.

2. If we want to access a SQL server beyond a local area network then the connection must pass through one or more routers and at least one Proxy/Firewall. Sometimes, the Firewall and/or Proxy may not allow SQL Server to be accessed from an external location.

For instance, the error appears as below.

SQL server error 11001

How we resolve SQL server error 11001

Here are the steps that our Support Engineers provide to our customers to follow to fix this error.

1. Enter the correct server name on the client such that you can resolve the name of the server from the client. Also, to check the TCP/IP name resolution, we suggest using the ping command in the Windows operating system.

Also, make sure you are using the correct instance name. When connecting to a default instance, machinename is the best representative for the instance name and when connecting to a named instance such as sqlexpress, we suggest specifying the instancename as follows: machinenameinstancename.

Here, enter the SQL Server instance name for instancename.

Also, check that the SQL Server is in the network. Use the command SQLCMD -L to retrieve the list of SQL Servers installed in the network.

NOTE: This will only return SQL Servers if the SQL Server Browser service is running.

2. We suggest running netsvrcn.exe using command prompt as an Administrator on the ‘Server’ running the MSDE Database.

3. Enable TCP/IP and Named Pipes protocol

Check the TCP/IP and Named Pipes protocols and port. First, open SQL Server Configuration Manager and check the SQL Server Network Configuration protocols. Named Pipes and TCP/IP protocol must be enabled.

For the TCP/IP protocol, right-click and select properties and then check the TCP/IP communication port. The default port is 1433. However, this can be changed for security purposes if needed.

4. Restart the SQL Server instance.

5. From the firewall using ‘Windows Firewall Advanced Security’, exclude the ports SQL Server normally listens on, for both inbound and outbound rules:

1433 TCP port
1434 UDP port

6. SQL Server Browser service must be running. You can check the browser service status using either SQL Server Configuration Manager or the SC command as follows.

sc query sqlbrowser

[Need any further assistance in fixing SQL errors? – We’re available 24*7]

Conclusion

In short, this error occurs when the SQL Server can’t be found on Network. Today, we saw the resolution to this SQL error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

We have an application that uses MSDE as its ‘Back-end’. 
It has been working fine for years.  We have however had to recently re-build the Operating System on our own Server that it was running on. 

Original O/S Environment

We used Windows Server 2008 r2, using
Hyper-V
to run Windows Server 2003 so that we can use
MSDE
to run our application. 

We do not want to change to later versions of SQL Server Express as they no-longer support Replication.

NEW O/S Environment

When we re-built the Server we went for Windows Server 2008 r2, using
Hyper-V to run Windows 7 Enterprise so that we can use
MSDE to run our application. 

We have used this setup many times before and know that MSDE runs quite happily under Windows 7. 

Servers have been renamed

The real Windows Server 2008 r2 machine used to be called FILESERVER. 
It is now called FILE-SERVER.

The virtual machine running our application was originally called GEMSERVER. 
It is now called GEM-SERVER. 

What’s happening on the Server

The application is running fine.  We can access the underlying MDSE Database with SQL Server 2005 Management Studio Express without problem.
 We can build a test ODBC Data Source and connect to the ‘SQL Server’ Database, again without problems. 

What’s happening on the Client PC

The application does not connect.  I get:

     An error occurred while connecting.
     [DBNETLIB]ConnectionOpen (Connect())SQL Server does not exist
     or access denied.

When I build a ODBC Data Source to test the Connection I get:

Microsoft SQL Server Login

Connection failed:
     SQLState: ‘01000’
     SQL Server Error: 11001
     [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen
     (Connect()).
     Connection failed:
     SQLState: ‘08001’
     SQL Server Error: 6
     [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Specified SQL
     server not found

I can Ping GEM-SERVER from the Client PC without problems. 

I have disabled Firewalls an Anti-Virus Software on both the GEM-SERVER and the Client PC – to no avail. 

I’ve tried connecting with:

  • Named Pipes,
  • TCP/IP,
  • IP Address of GEM-SERVER – 192.168.16.122,
  • Using Specific Port 1433 in connection.

NONE of it worked.  L

ANYBODY any ideas what to try next?

Permalink

Cannot retrieve contributors at this time

title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords

MSSQLSERVER_11001

MSSQLSERVER_11001

MashaMSFT

mathoma

04/04/2017

sql

supportability

reference

12001

11001 (Database Engine error)

MSSQLSERVER_11001

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

Details

Attribute Value
Product Name SQL Server
Event ID 11001
Event Source MSSQLSERVER
Component SQLEngine
Symbolic Name
Message Text An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 — No such host is known.) (.Net SqlClient Data Provider)

Explanation

The [!INCLUDEssNoVersion] client cannot connect to the server. The error could occur because either the client cannot resolve the name of the server or the name of the server is incorrect.

User Action

Make sure that you have entered the correct server name on the client, and that you can resolve the name of the server from the client. To check TCP/IP name resolution, you can use the ping command in the Windows operating system.

See Also

Network Protocols and Network Libraries
Client Network Configuration
Configure Client Protocols
Enable or Disable a Server Network Protocol


Abstract

This topic was updated and moved into SQL Server Books Online in June. 2016. See
https://msdn.microsoft.com/library/mt750266.aspx 

Original topic follows:

This is an exhaustive list of troubleshooting techniques to use when you cannot connect to the SQL Server Database Engine. These steps are not in the order of the most likely problems which you probably already tried. These steps
are in order of the most basic problems to more complex problems. These steps assume that you are connecting to SQL Server from another computer by using the TCP/IP protocol, which is the most common situation. These steps are written for SQL Server 2008 R2
with a client running Windows 7, however the steps generally apply to other versions of SQL Server and other operating systems with only slight modifications.

These instructions are particularly useful when troubleshooting the «Connect to Server» error, which can be Error Number: 11001 (or 53), Severity: 20, State: 0

  • «A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
    »
  • «(provider: Named Pipes Provider, error: 40 — Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)» or «(provider: TCP Provider, error: 0 — No such host is known.) (Microsoft SQL Server, Error: 11001)»

This error usually means that the SQL Server computer can’t be found or that the TCP port number is either not known, or is not the correct port number, or is blocked by a firewall.

Not included

  • This topic does not include information about SSPI errors. For SSPI errors, see How to troubleshoot the «Cannot generate SSPI context» error message
  • This topic does not include information about Kerberos errors. For help, see Microsoft Kerberos Configuration Manager for SQL Server.
  • This topic does not include information about SQL Azure Connectivity.

Table of Contents

  • Abstract
    • Not included
  • Gathering Information about the Instance of SQL Server
  • Enable Protocols
  • Testing TCP/IP Connectivity
  • Testing a Local Connection
  • Opening a Port in the Firewall
  • Testing the Connection
  • See Also

Gathering Information about the Instance of SQL Server

  1. Confirm the instance of the SQL Server Database Engine is installed and running.

    1. Logon to the computer hosting the instance of SQL Server.
    2. On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.
    3. Using Configuration Manager, in the left pane select SQL Server Services. In the right-pane confirm that the instance of the Database Engine is present and running. The instance named MSSQLSERVER is
      a default (unnamed) instance. There can only be one default instance. Other (named) instances will have their names listed between the parentheses. SQL Server Express uses the name SQLEXPRESS as the instance name unless someone named it something
      else during setup. Make a note of the name of the instance that you are trying to connect to. Also, confirm that the instance is running, by looking for the green arrow. If the instance has a red square, right-click the instance and then click Start.
      It should turn green.        
    4. If you are attempting to connect to a named instance, make sure the SQL Server Browser service is running.
  2. Get the IP Address of the computer.
    1. On the Start menu, click Run. In the Run window type cmd, and then click OK.
    2. In the command prompt window, type ipconfig and then press enter. Make a note of the IPv4 Address and the IPv6 Address. (SQL Server can connect using the older IP version 4 protocol
      or the newer IP version 6 protocol. Your network could allow either or both. Most people start by troubleshooting theIPv4 address. It’s shorter and easier to type.)
  3. Get the TCP port number used by SQL Server. In most cases you are connecting to the Database Engine from another computer using the TCP protocol.
    1. Using SQL Server Management Studio on the computer running SQL Server, connect to the instance of SQL Server. In Object Explorer, expand Management, expand SQL Server Logs, and then double-click
      the current log.
    2. In the Log Viewer, click the Filter button on the toolbar. In the Message contains text box, type server is listening on, click Apply filter, and then click OK.
    3. A message similar to Server is listening on [ ‘any’ <ipv4> 1433] should be listed. This message indicates that this instance of SQL Server is listening on all the computers IP Addresses (for IP version 4) and
      is listening to TCP port 1433. (TCP port 1433 is usually the port used by the Database Engine. Only one instance of SQL Server can use a port, so if there is more than one instance of SQL Server installed, some instances must use other port numbers.)

Note: IP address 127.0.0.1 is probably listed. It is called the loopback adapter address and can only be connected to from processes on the same computer. It can be useful for troubleshooting, but you can’t use it to connect from another
computer.


Enable Protocols

In many installations of SQL Server, connecting to the Database Engine from another computer is not enabled unless an administrator uses Configuration Manager to enable it. To enable connections from another computer:

  1. On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.
  2. Using Configuration Manager, in the left pane expand SQL Server Network Configuration (or SQL Server Network Configuration (32bit)), and then select the instance of SQL Server that you want to
    connect to. The right-pane lists the connection protocols available. Shared Memory is normally enabled. It can only be used from the same computer, so most installations leave Shared Memory enabled. To connect to SQL Server from another computer you will normally
    use TCP/IP. If TCP/IP is not enabled, right-click TCP/IP, and then click Enable.
  3. If you changed the enabled setting for any protocol you must restart the Database Engine. In the left pane select SQL Server Services. In the right-pane, right-click the instance of the Database Engine, and then
    click Restart.

Testing TCP/IP Connectivity

Connecting to SQL Server by using TCP/IP requires that Windows can establish the connection.

  1. On the Start menu, click Run. In the Run window type cmd, and then click OK.
  2. In the command prompt window, type ping and then the IP Address of the computer that is running SQL Server. For example, ping 192.168.1.101 using an IPv4 address, or ping fe80::d51d:5ab5:6f09:8f48%11 using
    an IPv6 address. (You must replace the numbers after ping with the IP addresses on your computer.)
  3. If your network is properly configured you will receive a response such as Reply from <IP address>. If you receive an error such as «Destination host unreachable.» or «Request timed out.»
    then TCP/IP is not correctly configured. (Check that the IP address was correct and was correctly typed.) Errors at this point could indicate a problem with the client computer, the server computer, or something about the network such as a router.  For more
    information, see How to Troubleshoot Basic TCP/IP Problems.
  4. Next, if the ping test succeeded using the IP address, a test that the computer name can be resolved to the TCP/IP address. On the client computer, in the command prompt window, type ping and then the computer
    name of the computer that is running SQL Server. For example, ping newofficepc.
  5. If you receive an error such as «Destination host unreachable.» or «Request timed out.» you might have old (stale) name resolution information cached on the client computer. Type ipconfig
    /flushdns
     to clear the DNS (Dynamic Name Resolution) cache. Then ping the computer by name again. With the DNS cache empty, the client computer will check for the newest information about the IP address for the server computer.
  6. If your network is properly configured you will receive a response such as Reply from <IP address>. If you can successfully ping the server computer by IP address but receive an error such as «Destination
    host unreachable.
    » or «Request timed out.» when pinging by computer name, then name resolution is not correctly configured. (For more information, see How to Troubleshoot Basic TCP/IP
    Problems.) Successful name resolution is not required to connect to SQL Server, but if the computer name cannot be resolved, then connections must be made specifying the IP address. This is not ideal, but name resolution can be fixed later.

Testing a Local Connection

Before troubleshooting a connection problem from another computer, first test your ability to connect from a client application on the computer that is running SQL Server. This procedure
uses SQL Server Management Studio. Management Studio might not have been installed when you installed the Database Engine. You can install Management Studio from the SQL Server CD by running setup and selecting the Management Tools option. If you are running
SQL Server Express, you can download the free SQL Server Management Studio Express from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=08e52ac2-1d62-45f6-9a4a-4b76a8564a2b.
(If Management Studio is not available you can test the connection using the sqlcmd.exe utility which is installed with the Database Engine.)

  1. Logon to the computer where SQL Server is installed, using a login that has permission to access SQL Server. (SQL Server 2008 installation requires at least one login to be specified as a SQL Server Administrator. If you do not
    know an administrator, see Troubleshooting: Connecting to SQL Server When System Administrators Are Locked Out.)

  2.  On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, and then click SQL Server Management Studio.

  3. In the Connect to Server dialog box, in the Server type box, select Database Engine. In the Authentication box, select Windows Authentication.
    In the Server name box, type one of the following:

    Connecting to:

    Type:

    Example:

    Default instance

    The computer name

    ACCNT27

    Named Instance

    The computer nameinstance name

    ACCNT27PAYROLL

    Note: When connecting to a SQL Server from a client application on the same computer, the shared memory protocol is used. Shared memory is a type of local named pipe, so sometimes errors regarding pipes are encountered.

    If you receive an error at this point, you will have to resolve it before proceeding. There are many possible things that could be a problem. Your login might not be authorized to connect. Your default database might be missing.

    Note: Some error messages passed to the client intentionally do not give enough information to troubleshoot the problem. This is a security feature to avoid providing an attacker with information about SQL Server.
    To view the complete information about the error, look in the SQL Server error log. The details are provided there. If you are receiving error 18456 «Login failed for user», Books Online topic http://msdn.microsoft.com/en-us/library/cc645917.aspx contains
    additional information about error codes. And Aaron Bertrand’s blog has a very extensive list of error codes athttp://www2.sqlblog.com/blogs/aaron_bertrand/archive/2011/01/14/sql-server-v-next-denali-additional-states-for-error-18456.aspx. 

  4.  If you can connect using shared memory, test connecting using TCP. You can force a TCP connection by specifying tcp: before the name. For example:

    Connecting to:

    Type:

    Example:

    Default instance

    tcp: The computer name

    tcp:ACCNT27

    Named Instance

    tcp: The computer name/instance name

    tcp:ACCNT27PAYROLL

    If you can connect with shared memory but not TCP, then you must fix the TCP problem. The most likely issue is that TCP is not enabled. To enable TCP, See the Enable Protocols steps above.

  5.  If your goal is to connect with an account other than an administrator account, once you can connect as an administrator, try the connection again using the Windows Authentication login or the SQL Server Authentication login that
    the client application will be using.


Opening a Port in the Firewall

Beginning with Windows XP Service Pack 2, the Windows firewall is turned on and will block connections from another computer. To connect using TCP/IP from another computer, on the SQL Server computer you must configure the firewall
to allow connections to the TCP port used by the Database Engine. If you are connecting to a named instance or a port other than TCP port 1433, you must also open the UDP port 1434 for the SQL Server Browser service. For step by step instruction on opening
a port in the Windows firewall, see How to: Configure a Windows Firewall for Database Engine Access.


Testing the Connection

Once you can connect using TCP on the same computer, it’s time to try connecting from the client computer. You could theoretically use any client application, but to avoid additional complexity, install the SQL Server Management
tools on the client and make the attempt using SQL Server Management Studio.

1. On the client computer, using SQL Server Management Studio, attempt to connect using the IP Address and the TCP port number in the format IP address comma port number. For example, 192.168.1.101,1433 If this
doesn’t work, then you probably have one of the following problems:

  • Ping of the IP address doesn’t work, indicating a general TCP configuration problem. Go back to the section Testing TCP/IP Connectivity.
  • SQL Server is not listening on the TCP protocol. Go back to the section Enable Protocols.
  • SQL Server is listening on a port other than the port you specified. Go back to the section Gathering Information about the Instance of SQL Server.
  • The SQL Server TCP port is being blocked by the firewall. Go back to the section Opening a Port in the Firewall.

2. Once you can connect using the IP address and port number, attempt to connect using the IP address without a port number. For a default instance, just use the IP address. For a named instance, use the IP address and the instance
name in the format IP address backslash instance name, for example 192.168.1.101PAYROLL If this doesn’t work, then you probably have one of the following problems:

  • If you are connecting to the default instance, it might be listening on a port other than TCP port 1433, and the client isn’t attempting to connect to the correct port number.  
  • If you are connecting to a named instance, the port number is not being returned to the client. 

Both of these problems are related to the SQL Server Browser service, which provides the port number to the client. The solutions are:

  • Start the SQL Server Browser service. Go back to the section Gathering Information about the Instance of SQL Server, section 1.b.
  • The SQL Server Browser service is being blocked by the firewall. Open UDP port 1434 in the firewall. Go back to the section Opening a Port in the Firewall.
  • The UDP port 1434 information is being blocked by a router. UDP communication (datagrams) are not designed to pass through routers. This keeps the network from getting filled with low priority traffic. You might be able to configure your router to forward
    UDP traffic, or you can decide to always provide the port number when you connect.
  • If the client computer is using Window 7 or Windows Server 2008, (or a more recent operating system,) the UDP traffic might be dropped by the client operating system because the response from the server is returned from a different IP address than was queried.
    This is a security feature blocking «loose source mapping.» For more information, see the Multiple Server IP Addresses section of the Books Online topic Troubleshooting: Timeout
    Expired. You might be able to configure the client to use the correct IP address, or you can decide to always provide the port number when you connect.

3. Once you can connect using the IP address  (or IP address and instance name), attempt to connect using the computer name (or computer name and instance name). Put tcp: in front of the computer name to force
a TCP/IP connection. For example, for a default instance use something like tcp:ACCNT27 For a named instance usesomething like tcp:ACCNT27PAYROLL If you could connect using the IP address but not using the computer name,
then you have a name resolution problem. Go back to the section Testing TCP/IP Connectivity, section 4.

4. Once you can connect using the computer name forcing TCP, attempt connecting using the computer name but not forcing TCP. For example, for a default instance use just the computer name such as ACCNT27 For a
named instance use the computer name and instance name like ACCNT27PAYROLL If you could connect using whileforcing TCP, but not without forcing TCP, then the client is probably using another protocol (such as named pipes).

a. On the client computer, using SQL Server Configuration Manager, in the left-pane expand SQL Native Client 10.0 Configuration, and then select Client Protocols.

b. On the right-pane, Make sure TCP/IP is enabled. If TCP/IP is disabled, right-click TCP/IP and then click Enable.

c. Make sure that the protocol order for TCP/IP is a smaller number that the named pipes or VIA protocols. Generally you should leave Shared Memory as order 1 and TCP/IP as order 2. Shared memory is only used when the client and
SQL Server are running on the same computer. All enabled protocols are tried in order until one succeeds, except that shared memory is skipped when the connection is not to the same computer. 


See Also

Another important place to find an extensive amount of SQL Server General & Database Engine related articles is the TechNet Wiki itself. The best entry point is SQL
Server General & Database Engine Resources on the TechNet Wiki


Понравилась статья? Поделить с друзьями:
  • Ошибка sql server 10061
  • Ошибка sql s1000
  • Ошибка sql login failed for user
  • Ошибка sql 911
  • Ошибка sql 901