TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Fouzia Qureshi
NA
36
2.2k
SqlCommandBuilder not updating record in database
Jan 25 2021 8:46 PM
private void btn_update_Click(object sender, EventArgs e){
try
{
conStr = @"--------------";
con = new SqlConnection(conStr);
con.Open();
string query = "Select * from tblProduct";
cmd = new SqlCommand(query, con);
sda = new SqlDataAdapter(cmd);
SqlCommandBuilder scb = new SqlCommandBuilder(sda);
sda.Update(tbl);
tbl.AcceptChanges();
con.Close();
MessageBox.Show("Data Updated :) ");
}
catch (Exception ex)
{
MessageBox.Show("error" + ex.Message);
}
}
Reply
Answers (
3
)
public sealed class ArrayBufferWriter<T>
Server side pagination asp.net core and angular simple flow