String strsql = "Insert Into userinfo(userid,username,[password],province,sex,intro,register_time) values(" + userid.Text + ",'" + username.Text + "','" + pwd1.Text + "','" + prov.SelectedItem.Text + "','" + sex.SelectedItem.Text + "','" + intro.Text + "','" + "','#" + System.DateTime.Now.ToString() + "#')";
上面代码复制过去试试.
错误有2:
用户ID不需呀使用' '
日期时间你写成了 #',应该是 '#