以前遇到过
后来用这样就没有问题!,可能是你用参数的时候 ,参数大小太小 或者你数据库中字段太小
Comm.CommandText = "insert into news(type,title,content,url,[time]) values('" & mTypeName & "','" & inserttitle & "','" & Trim(Content) & "','" & insertUrl & "','" & Newsdate & "')"
Comm.Connection = Conn
If Conn.State = ConnectionState.Closed Then
Conn.Open()
End If Comm.ExecuteNonQuery()
Conn.Close()
End If
后来用这样就没有问题!,可能是你用参数的时候 ,参数大小太小 或者你数据库中字段太小
Comm.CommandText = "insert into news(type,title,content,url,[time]) values('" & mTypeName & "','" & inserttitle & "','" & Trim(Content) & "','" & insertUrl & "','" & Newsdate & "')"
Comm.Connection = Conn
If Conn.State = ConnectionState.Closed Then
Conn.Open()
End If Comm.ExecuteNonQuery()
Conn.Close()
End If
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货