S
skavan
Hi,
I've seen about 2,345 messages on how to submit parent/child rows via
ado.net.
2. Build relations
3. Make Changes
4. Post parent row with event handler (ms Access).
5. Grab new ID in event handler with new SQL command,
6. Post new ID into the parent Row updated in #4.
7. Watch the Cascade
8. Update the Children
It's a bit of a pain - but ok...but what about the case where we have
500 parent rows and 10,000 child rows to post back to the Database?
There has to be a batch process that works.
i.e.:
1,2 & 3 as above.
4. Post all parent rows in a batch update.
5. Grab all the changed parent rows in one pull.
6. Apply the new Keys in 5 to the underlying parent records (that
cuttenly have -1 to -100 in them).
7. Watch the Cascade
8. Update the children.
I can't figure out how to do #5 and #6 without losing the relationship
to the child rows.
Can anyone help? I'm using vb.net and ms access.
My use case is a music library.
The parent table is tblArtists, with ArtistID (autoincrement, primary
key) and ArtistName (string).
The child table is tblTracks, with amongst 70 other things, an ArtistID
field that connects to its parent.
I have an inbound object that has a set of child table fields and the
ArtistName.
My code posts the ArtistName to tblArtists and the ArtistID that is
generated to tblTracks.
In a given pass, I will be creating around 500 artist rows and 10,000
track rows.
Thanks in advance.
I've seen about 2,345 messages on how to submit parent/child rows via
ado.net.
1. Make Connection, Grab Tables/DataSet & Build CommandAdaptersFrom what I've gathered, the process goes:
2. Build relations
3. Make Changes
4. Post parent row with event handler (ms Access).
5. Grab new ID in event handler with new SQL command,
6. Post new ID into the parent Row updated in #4.
7. Watch the Cascade
8. Update the Children
It's a bit of a pain - but ok...but what about the case where we have
500 parent rows and 10,000 child rows to post back to the Database?
There has to be a batch process that works.
i.e.:
1,2 & 3 as above.
4. Post all parent rows in a batch update.
5. Grab all the changed parent rows in one pull.
6. Apply the new Keys in 5 to the underlying parent records (that
cuttenly have -1 to -100 in them).
7. Watch the Cascade
8. Update the children.
I can't figure out how to do #5 and #6 without losing the relationship
to the child rows.
Can anyone help? I'm using vb.net and ms access.
My use case is a music library.
The parent table is tblArtists, with ArtistID (autoincrement, primary
key) and ArtistName (string).
The child table is tblTracks, with amongst 70 other things, an ArtistID
field that connects to its parent.
I have an inbound object that has a set of child table fields and the
ArtistName.
My code posts the ArtistName to tblArtists and the ArtistID that is
generated to tblTracks.
In a given pass, I will be creating around 500 artist rows and 10,000
track rows.
Thanks in advance.