En este post, comparto las diferentes pruebas que deben ayudarle a depurar el problema. Los siguientes pasos le ayudarán a resolver diversos problemas, tales como mensaje de error a continuación:
LADO SERVIDORPaso 1: SQL Server Configuration Manager Ir a Todos los programas >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server Services, y comprobar - El estado del servicio SQL Server está "en marcha ".- El estado del servicio SQL Browser está "en marcha ". (si hay una instancia que no utiliza el puerto 1433)- Si los protocolos TCP/IP y NP se activanPaso 2: Servidor de seguridadDesactivar el firewall y el problema ya no ocurre, siga los dos artículos siguientes : Cómo abrir el puerto de firewall para SQL Server en Windows Server 2008Configurar Firewall de Windows para permitir el acceso a SQL Server
LADO SERVIDORPaso 1: SQL Server Configuration Manager Ir a Todos los programas >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server Services, y comprobar - El estado del servicio SQL Server está "en marcha ".- El estado del servicio SQL Browser está "en marcha ". (si hay una instancia que no utiliza el puerto 1433)- Si los protocolos TCP/IP y NP se activanPaso 2: Servidor de seguridadDesactivar el firewall y el problema ya no ocurre, siga los dos artículos siguientes :
Para configurar el motor de base de datos de modo que acepte las conexiones remotas
LADO CLIENTE
Paso 1 : Cadena de conexión no es correcta o no apunta a un servidor real. Asegúrese de ser el nombre de instancia
Step 2 : Comprobar si el puerto esta abiertotelnet <su_objetivo_máquina> <TCP_Port>
Paso 3 : Ping serverping -a <su_objetivo_máquina> ping -a <Su_dirección_IP_remota>Run “net view \\su_objetivo_máquina” Paso 4 : SQL Alias.Por mi parte yo estaba trabajando en una máquina de 64 bits destinados tenido que quitar un Alias "en el marco del SQL Configuration Manager -> 32 Bit Config -> Alias.También se confirmó con cliconfg.exe
Las claves del registro:32 bit: HKLM\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo64 bit: HKLM\SOFTWARE\Wow6432Node\Microsoft\MSSQLServer\Client\ConnectToPaso 5 : Pruebe la conexión de salida de su aplicaciónSQLCMD –E -S tcp:<IPDirección>[\<InstanceName>],<Port> SQLCMD –E -S tcp:<su_objetivo_máquina>[\<InstanceName>],<Port>
Pruebe el FQDN para conectarse al servidor que ejecuta Microsoft SQL Server. SQLCMD –E -S tcp:<su_objetivo_máquina>.<FQDN>[\<InstanceName>],<Port>
SQL_Protocols Team How to configure SQL Server 2005 to allow remote connectionsHow to configure an instance of SQL Server to listen on a specific TCP port or a dynamic portTroubleshooting Server and Database Connection ProblemsSQL Server 2005 Connectivity Issue Troubleshoot - Part ITroubleshoot Connectivity Issue in SQL Server 2005 - Part IINamed Pipes Provider, error: 40 - Could not open a connection to SQL ServerSteps to troubleshoot SQL connectivity issuesNamed Pipes Provider, error: 40 - Could not open a connection to SQL Server (Microsoft SQL Server, Error: XXX) Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |
SQL_Protocols Team How to configure SQL Server 2005 to allow remote connectionsHow to configure an instance of SQL Server to listen on a specific TCP port or a dynamic portTroubleshooting Server and Database Connection ProblemsSQL Server 2005 Connectivity Issue Troubleshoot - Part ITroubleshoot Connectivity Issue in SQL Server 2005 - Part IINamed Pipes Provider, error: 40 - Could not open a connection to SQL ServerSteps to troubleshoot SQL connectivity issuesNamed Pipes Provider, error: 40 - Could not open a connection to SQL Server (Microsoft SQL Server, Error: XXX)
Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |