表的列的数据类型都是什么
另外首先+"',"+fbytes+"','"+这里有一个不匹配的单引号

解决方案 »

  1.   

    string pp = ("insert into Tb_testResult (T_dStart,T_dEnd,T_softLink,T_CostTime,T_fbytes,T_AveSpeed,T_ClientIp) values ('"+str_dStart+"','"+str_dEnd+"','"+softLink+"','"+CostTime+"',"+fbytes+"','"+AveSpeed+"','"+ClientIp+"')";
    Response.Write( pp);
    把PP打出来,再判断你的Sql有什么错误,这样就方便多了啊!
      

  2.   

    昏阿,谢谢 myhero811104(犬善被人欺) ,搞定了,我眼睛都要瞎了
      

  3.   

    SqlCommand insertCommand=new SqlCommand("insert into Tb_testResult (T_dStart,T_dEnd,T_softLink,T_CostTime,T_fbytes,T_AveSpeed,T_ClientIp) values ('"+str_dStart+"','"+str_dEnd+"','"+softLink+"','"+CostTime+"',<这个地方少了个“'”>"+fbytes+"','"+AveSpeed+"','"+ClientIp+"')",thisConnection);
    正确的
    SqlCommand insertCommand=new SqlCommand("insert into Tb_testResult (T_dStart,T_dEnd,T_softLink,T_CostTime,T_fbytes,T_AveSpeed,T_ClientIp) values ('"+str_dStart+"','"+str_dEnd+"','"+softLink+"','"+CostTime+"','"+fbytes+"','"+AveSpeed+"','"+ClientIp+"')",thisConnection);