SqlServer教程

‘08S01‘, ‘[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x68 (104)

本文主要是介绍‘08S01‘, ‘[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x68 (104),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

sqlalchemy.exc.OperationalError: (pyodbc.OperationalError) (‘08S01’, ‘[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLExecDirectW)’)
[SQL: INSERT INTO [tRemoteMeterInfo_HLJMDJ] ([MeterSeal], [ConcentratorNo], [UserCode], [ClientName], [MeterAddress], [MoblePhone], [MeterStatus], [ValveStatus], [MeterInstallTime], [MeterFactory], [UpLoadTime]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ((‘78331711806623’, ‘圣林新居’, ‘3109453’, ‘’, ‘圣林新居-1号楼-2单元303号’, ‘’, ‘’, None, None, ‘JXSC’, datetime.datetime(2021, 7, 10, 12, 19, 46, 659142)), (‘78331711806638’, ‘圣林新居’, ‘3109477’, ‘’, ‘圣林新居-1号楼-2单元1103号’, ‘’, ‘’, None, None, ‘JXSC’, datetime…

在stackoverflow上看到有同类问题,但没给出明确的解决答案。在我今天遇到的这个个案来看,报错的原因是因为字段长度不足,加大字段长度,问题就解决了。

这篇关于‘08S01‘, ‘[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x68 (104)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!