当前位置:网站首页>将截断字符串或二进制数据
将截断字符串或二进制数据
2022-07-06 18:25:00 【C...D】

Error! [8152]System.Data.SqlClient.SqlException: 将截断字符串或二进制数据。语句已终止。
原因:数据库表中增加的字段数据类型与其他表相同字段的数据类型和大小要一致,否则会报“将截断字符串或二进制数据。语句已终止。”这种错误。
解决方法:
1、修改数据库字段大小;
2、加强数据强壮性,严格的输入判断。 防止添加的信息类型或者长度与数据库表中字段所对应的类型不符合。
边栏推荐
- How did partydao turn a tweet into a $200million product Dao in one year
- Drag to change order
- 刨析《C语言》【进阶】付费知识【完结】
- Golang foundation - data type
- Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
- AcWing 1142. Busy urban problem solving (minimum spanning tree)
- Domestic images of various languages, software and systems. It is enough to collect this warehouse: Thanks mirror
- Public key \ private SSH avoid password login
- AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
- The difference between Tansig and logsig. Why does BP like to use Tansig
猜你喜欢

ROS学习(26)动态参数配置

Analyze "C language" [advanced] paid knowledge [i]

ROS學習(23)action通信機制

ROS learning (XIX) robot slam function package cartographer

How did partydao turn a tweet into a $200million product Dao in one year

How can I code for 8 hours without getting tired.

Box stretch and pull (left-right mode)

2022/0524/bookstrap

Cisp-pte practice explanation (II)

JVM 内存模型
随机推荐
Mongodb checks whether the table is imported successfully
Gin introduction practice
CISP-PTE之命令注入篇
Date processing tool class dateutils (tool class 1)
AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
Image watermarking, scaling and conversion of an input stream
Reptile practice (VI): novel of climbing pen interesting Pavilion
MySQL execution process and sequence
ROS learning (24) plugin
Shortcut keys commonly used in idea
ROS learning (23) action communication mechanism
Set up [redis in centos7.x]
Vingt - trois mille feuilles? "Yang mou" derrière l'explosion de la consommation végétale
AcWing 904. Wormhole solution (SPFA for negative rings)
AcWing 346. Solution to the problem of water splashing festival in the corridor (deduction formula, minimum spanning tree)
ROS学习(22)TF变换
Let's see how to realize BP neural network in Matlab toolbox
STM32F4---PWM输出
Redis configuration class redisconfig
Today's question -2022/7/4 modify string reference type variables in lambda body