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
eksypnos123
NA
65
0
data adapter does not update
Oct 26 2004 12:42 PM
SqlConnection con=new SqlConnection("Data Source=real\\real;Initial Catalog=Northwind;Integrated Security=SSPI;"); string sql1="Select * from Employees"; SqlDataAdapter da=new SqlDataAdapter(sql1,con); SqlCommandBuilder cb=new SqlCommandBuilder(da); DataSet ds=new DataSet(); da.Fill(ds,"Employees"); ds.Tables[0].Rows[0]["LastName"]="Smith"; ds.AcceptChanges(); da.Update(ds,"Employees"); I execute the above simple code and yet the tables Employess from Nortwind database is not updated. I get no errors. I have followed the example from the documentation of SqlCommandBuilder.
Reply
Answers (
3
)
how to import the Access file(.MDB) into Oracle by using ado.net
passing a different sql string to DataAdapter each time i click a button