473,473 Members | 2,316 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TableAdapter.Update() does not really change the database

I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?

Jan 8 '07 #1
5 20805

dani kotlar wrote:
I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?

Are you attched the Updated command to adapter ?

Jan 9 '07 #2
Yes, I attached using Fill, changed the dataset, and now I want to
update the underlying database using update, but this does not work.

Dani
Karthik D V ëúá:
dani kotlar wrote:
I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?

Are you attched the Updated command to adapter ?
Jan 9 '07 #3
dani,
please let me know if you get an asnwer to this. I have the exact same issue
and cannot resolve it for days now. I am consigering going back to VB 6.0 for
this app I need at this point. Frustrating!
"dani kotlar" wrote:
Yes, I attached using Fill, changed the dataset, and now I want to
update the underlying database using update, but this does not work.

Dani
Karthik D V כתב:
dani kotlar wrote:
I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?

Are you attched the Updated command to adapter ?

Jan 28 '07 #4
You need to create the select, insert, delete, and update commands for the
DataAdapter, or use the commandbuiler class.

http://msdn2.microsoft.com/en-us/lib...ndbuilder.aspx

works fine for me...

"Chris" <Ch***@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
dani,
please let me know if you get an asnwer to this. I have the exact same
issue
and cannot resolve it for days now. I am consigering going back to VB 6.0
for
this app I need at this point. Frustrating!
"dani kotlar" wrote:
>Yes, I attached using Fill, changed the dataset, and now I want to
update the underlying database using update, but this does not work.

Dani
Karthik D V ???:
dani kotlar wrote:
I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?
Are you attched the Updated command to adapter ?


Jan 28 '07 #5
If you are using SQL Express, make sure you are updating the right copy of
the database. Check out this link:

http://msdn2.microsoft.com/en-us/lib...89(VS.80).aspx

Robin S.
----------------------------------------------
"Chris" <Ch***@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
dani,
please let me know if you get an asnwer to this. I have the exact same
issue
and cannot resolve it for days now. I am consigering going back to VB 6.0
for
this app I need at this point. Frustrating!
"dani kotlar" wrote:
>Yes, I attached using Fill, changed the dataset, and now I want to
update the underlying database using update, but this does not work.

Dani
Karthik D V ???:
dani kotlar wrote:
I run the following code:
this.carsBindingSource.EndEdit();
this.carsTableAdapter.Update( this.vehiclesDataSet.Cars );
in order to save changes in the dataset to the database, but the
changes don't take place in the database. Am I missing something?
Are you attched the Updated command to adapter ?


Jan 29 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: delraydog | last post by:
If you've used the Google Gmail spell checker you know that it 'changes' the text area to another type of control that lets them show hyperlinks for the incorrect words. How does Google change the...
1
by: John Moore | last post by:
Hi, I normally work with Java but I'm interested in using Python as well, particularly for little tasks like doing some massaging of data in a MySQL database. Below is my first attempt. I'm sure...
1
by: eduardoben | last post by:
I use a tableadapter with the sql string = select * fom table where field=? I load the desired record in a form and populate textboxes but after i modify them when i use tableadapter.update it...
1
by: Magnus | last post by:
My situation compares to this: I have two tables parentTable(id, foreignId) and childTable(id, value). "foreignId" in the "parentTable" references "id" in "childTable". The constraint is by default...
6
by: craigkenisston | last post by:
How to change database name on the fly? I have an asp.net application in which a user connects to a sql server, where there's a centralized database with the users table and general settings....
2
GrandMaster
by: GrandMaster | last post by:
Can I create an update query to change all the dates in a column of data that is currently in this format: 0407 (so the first two digits are the month and the third and fourth digits are the year,...
15
by: Ms Rusty Boyd | last post by:
I am working in MS Access 2003 and I want to use the update query to change part of a value in a field. I have a last name field that contains a lot of records. Someone entered the values De Pedro...
0
jas16183
by: jas16183 | last post by:
Hi Guys, need some help here, Im working on a project in vb.net, the problem im facing is that my tableadapter.update(dataset.datatable) is not functioning, the datatable has a relation with...
8
by: Boris227 | last post by:
I have written an application that has a DataGridView for users to amend a table. When finished they click a 'Save' button, which generates a series of queries based on the new data. The problem...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.