SqlConnection con = new SqlConnection(createCon);
        string sql = "update shop set content=@content where id=1";
        SqlCommand cmd = new SqlCommand(sql, con);
        con.Open();
        cmd.Parameters.Add("@content", SqlDbType.Text);
        cmd.Parameters["@content"].Value = FCKeditor1.Value;
        //try
        //{
        cmd.ExecuteNonQuery();

解决方案 »

  1.   

    text类型用
    declare @ptrval1 varbinary(16)
    select @ptrval1=textptr(AA) from A where XTBH=@XTBH
    if(textvalid('A.AA,@ptrval1)=1)
    updatetext A.AA @ptrval1  0  null @AA
      

  2.   

    SqlConnection con = new SqlConnection(createCon);
            string sql = "update shop set content=@content from shop  where id=1";
            SqlCommand cmd = new SqlCommand(sql, con);
            con.Open();
            cmd.Parameters.Add("@content", SqlDbType.Text);
            cmd.Parameters["@content"].Value = FCKeditor1.Value;
            //try
            //{
            cmd.ExecuteNonQuery();还要看看类型是否匹配,若是字段不允许空,你的FCKeditor1.Value 是不是null
      

  3.   

    LZ先在数据库中检测一下update语句是否正确