数据库只要连接上了,基本上就可以一视同仁了!myConnection = new System.Data.SqlClient.SqlConnection
(System.Configuration.ConfigurationSettings.AppSettings["connectionstring"]);
myConnection.Open(); string delstr = "UPDATE  A SET B=C" ;
+ "WHERE D = "
+ "'" + TextBox.Text + "'";

SqlCommand delcmd = new SqlCommand(delstr,myConnection);
int delrn = delcmd.ExecuteNonQuery();