[求助]C#连接SQL2005问题
谁能帮我看看!SqlConnection conn = new SqlConnection("server=localhost;pwd = sun,user id ='sa',database = test,Integrated Security=SSPI");
conn.Open();
SqlCommand cmd = new SqlCommand();
= "INSERT INTO test(city,tq,wd) VALUES ('qq','" + YQ + "','" + WD + "')";
cmd.Connection = conn;
cmd.ExecuteNonQuery();
MessageBox.Show("数据添加成功!");
conn.Close();