‘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上看到有同类问题,但没给出明确的解决答案。在我今天遇到的这个个案来看,报错的原因是因为字段长度不足,加大字段长度,问题就解决了。
标签:None,code,17,08S01,SQL,datetime,新居,圣林 来源: https://blog.csdn.net/weixin_43425561/article/details/118642481