dbcli / dbcli/mssql-cli

Unable to connect to server

Abierto
#248 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
1.4k
Forks
191
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I am unable to connect to a SQL Server 2016 running on the standard port 1433 on a Windows Server, but succeed in connecting with sqlcmd.

- **Expected**: Successful connection to SQL Server as with sqlcmd on port 1433.
- **Actual**: Error, Connection reset by peer.

I have installed mssql-cli v0.15 using Direct Download and the RHEL default pkg manager yum.

- Distribution: Red Hat Enterprise Linux Server release 7.6 (Maipo)
- System: Linux 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 GNU/Linux
- MSSQL-CLI version: 0.15 (mssql-cli-0.15.0-1.el7.x86_64)
- Python version: Python 2.7.5 (python-2.7.5-76.el7.x86_64)
- sqlcmd version: Version 17.3.0000.1 Linux (mssql-tools-17.3.0.1-1.x86_64)
- ODBC version: 2.3.7 (unixODBC-2.3.7-1.rh.x86_64, unixODBC-devel-2.3.7-1.rh.x86_64)
- SQL Server: Microsoft SQL Server 2016 (SP1-CU3) - 13.0.4435.0 (X64)

The command being run is

`mssql-cli -S server.hostname.tld -U actual_username -P $MSSQL_CLI`
I have also run the same but with manual password prompting (i.e. without the -P flag).

The error presented is
`Error message: One or more errors occurred. (Unable to write data to the transport connection: Connection reset by peer.)`

With sqlcmd, I am running the following string and I get a command prompt on the server
`$ sqlcmd -S server.hostname.tld -U actual_username -P $MSSQL_CLI`
This allows me to execute SQL statements.
>1>

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza en el punto de entrada de conexión de mssql-cli y compara su ruta de conexión de SQL Server/ODBC con el comando sqlcmd que funciona, usando la configuración indicada de RHEL 7.6 y SQL Server 2016. Reproduce el error de restablecimiento de conexión en el puerto 1433 y rastrea el comportamiento diferente; se considera terminado cuando mssql-cli se conecta correctamente en las condiciones indicadas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python, sql
Área
cli, databases, networking
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.