Skip to content

MsSQLHook and pymssql Adaptive Server connection failed #42691

Closed Answered by gordthompson
anthony-joyce asked this question in General
Discussion options

You must be logged in to vote

Just in case you haven't heard: Setting the TDSDUMP environment variable before running your test script, e.g.,

export TDSDUMP=/tmp/tdsdump.txt

logs all of the gory details to the specified file. For example, if I try connecting to SQL Server 2008 without tds_version=7.0 I see

net.c:391:Connecting with protocol version 7.4
…
tls.c:1036:handshake failed with -1 3 1
tls.c:1080:handshake failed
login.c:670:login packet rejected
query.c:3804:tds_disconnect() 

whereas with tds_version=7.0 I see

net.c:391:Connecting with protocol version 7.0
net.c:318:Connecting to 192.168.0.100 port 1433
net.c:340:tds_setup_socket: connect(2) returned "Operation now in progress"
net.c:528:tds_open_socket() su…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@gordthompson
Comment options

@anthony-joyce
Comment options

@anthony-joyce
Comment options

@gordthompson
Comment options

Answer selected by anthony-joyce
@anthony-joyce
Comment options

@anthony-joyce
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug area:providers area:core needs-triage label for new issues that we didn't triage yet provider:microsoft-mssql
3 participants
Converted from issue

This discussion was converted from issue #42642 on October 02, 2024 23:46.