![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql server
陆二流
说书人应笑我既疯也如癫
展开
-
sql server 插入的中文显示为”???”
年末总结5这个就有点尴尬了。我目前知道的解决办法,前提是你还没新建数据库,或者是数据库里的数据还不多,现在能重新再建一个 ˋ( ° ▽、° ) (o( ̄▽ ̄///(斩!!) 右键选择你要更改的数据库,选择属性(Properties)->Options Collation选择Chinese_PRC_90_CI_AS ps:collation的选项不一定,可以选择其他能用的哦~之后在要插入的中文数转载 2017-12-31 14:52:31 · 13128 阅读 · 0 评论 -
C#初始化数据库错误提示:The type initializer for 'ASSET.DBHelper' threw an exception
年末总结7 这是我在做ASSET工程时,DBHelper.cs不管用了,也就是数据库连不上了。 问题出在初始化数据库错误,导致下方的sql语句不能执行,得出的result值为null public static int ExecuteSql(string sql) { cn.Open(); SqlCommand cmd = new原创 2017-12-31 15:16:42 · 5935 阅读 · 0 评论 -
Error: String or binary data would be truncated 数据库提示错误
前段时间做什么来着,遇到这个问题,查到了解决方案,现在传上来。 解决方案就是把数据库字段的大小改大点。 比如nvarchar(10) 改成nvarchar(50)。alter table 表名 alter column 字段名 type not null转载 2018-01-05 14:27:03 · 37106 阅读 · 0 评论