Hello everybody please consider me as a newbie in C# and I am much willing to learn this language. This is first time I've join the community.
why update to mssql database failed.
mssql table
custId = int(autoincrement)
custname = varchar(30)
SqlConnection con = new SqlConnection("Data Source=CRIS-PC\\SQLEXPRESS;Integrated Security=True;Initial Catalog = POS");
SqlCommand command = new SqlCommand("Update customers set custname = @custname where custid = @custId)", con);
command.Parameters.AddWithValue("@custname",txtName.Text);
command.Parameters.AddWithValue("@custId",Convert.ToInt32(txtCustId.Text));
thank in advance.
Cris

Abhay ShankerRank #375 · 6.7K reputationPosted Jan 31, 2014, 8:17 AM EST
Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Jan 31, 2014, 5:32 PM EST
hope it helps you
Cris Abella6 reputationPosted Feb 1, 2014, 3:28 AM EST