sql语句过长

在用sqlcommand插入数据是写了个sql语句
string sqlstr1 = "insert into [userinfo](userid,email,borth,question,answer,homephone,movephone,address,youbian,sex,shenfenzhenghao) values('" + userid + "','" + TextBox5.Text + "','" + TextBox8.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text + "','" + sexy + "','" + TextBox13.Text + "')";
运行提示
将截断字符串或二进制数据。
语句已终止。

无语。。。
posted on 2007-04-23 21:21  漫步人生  阅读(1126)  评论(1编辑  收藏  举报