回复 2# yms123 的帖子
string connectionString="Data Source=.;..........."//自个儿写完
string cmdText="insert into users values ('zhangsan','123')";
SqlConnection conn = new SqlConnection(connectionString);
conn.open();
SqlCommand cmd = new SqlCommand(conn,cmdText);
com.ExecuteNonQuery();
conn.close();