を失敗しました:Pythonのpymssql:Adaptive Serverの接続が私のpythonを使用してAzureのSQLを接続しますが、次のエラーを取得しよう
File "pymssql.pyx", line 641, in pymssql.connect (pymssql.c:10824)
pymssql.OperationalError: (20002, 'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (myserver:1433)\n')
freetds.conf:
[global]
# TDS protocol version
tds version = 7.4
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
dump file = /tmp/freetds.log
; debug flags = 0xffff
# Command and connection timeouts
; timeout = 10
; connect timeout = 10
# If you get out-of-memory errors, it may mean that your client
# is trying to allocate a huge buffer for a TEXT field.
# Try setting 'text size' to a more reasonable limit
text size = 64512
私が使用TSQLを接続しようとした場合 - 接続成功!
私はのparamsで再コンパイルFreeTDSのを試してみてください。私は私の経験パーこのマニュアルhttps://msdn.microsoft.com/en-us/library/mt694094(v=sql.1).aspx
ありがとうございます。私はソースpymssqlとfreetds(以前の投稿でオプションをつけて、グローバル設定でtdsバージョン= 7.3を設定して)をmakeした後に解きます。 – Alximik
@Alximikあなたの共有に感謝します。 –