sqlconnection = new SqlCeConnection(ConnectionString);
sqlcommand = new SqlCeCommand();
sqlconnection.Open();
sqlcommand.Connection = sqlconnection;
sqlcommand.CommandText = (@"UPDATE ItemStock_Info SET Quantity =@qun WHERE [Item_Number]='"+ textBox1.Text +"'");
sqlcommand.Parameters.Add("@qun", qun);
Maheshwaran 0 Newbie Poster
Recommended Answers
Jump to PostYou're getting better. But when I work SQL problems like this I take the command and try it from my SQL command line. That way I can see if the syntax is right.
All 4 Replies
rproffitt 2,706 https://5calls.org Moderator
Maheshwaran 0 Newbie Poster
rproffitt 2,706 https://5calls.org Moderator
Santanu.Das 125 Santanu Das
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.