string conn_str = @" Server=(local); database = YJ_Database; User id = sa; Password = 123456 " ; SqlConnection conn = new SqlConnection(conn_str); conn.Open(); string sql = " insert into t_Organization values(‘ " +_FNumber+ " ‘,‘ " +_
string conn_str = @"Server=(local); database = YJ_Database; User id = sa; Password = 123456"; SqlConnection conn = new SqlConnection(conn_str); conn.Open(); string sql = "insert into t_Organization values(‘"+_FNumber+"‘,‘"+_FName+"‘)"; SqlCommand cmd = new SqlCommand(sql, conn); int n=cmd.ExecuteNonQuery(); conn.Close();