Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Hierarchial Update

Reply
 
Old 03-31-2008   #1 (permalink)
Gudni G. Sigurdsson


 
 

Hierarchial Update

Hi.
I have recently started using VS2008 after having used VS2005 in the past.
I have problems with updating related tables in an Access database
(Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=F:\Fjarskiptabunadur\FjarskiptaBunadur.mdb). I have 2 tables:
Producers and Units, the former being the parent the latter the child table.
When I change e.g. the name of a producer (not a key column in that table)
and try to save the changes, I get a message like The record cannot be
deleted or changed because table 'Units' includes related records.
I have worked through the HierarchialUpdateWalkthrough
example with the Northwind database (tables Customers and Orders) and that
works as expected. In my own example, I think I am doing everything in the
same way as in the Northwind example with tableAdapterManager and everything.
The only difference is that the Northwind example works and mine doesn´t.

I have tried to solve this for some time now and would be very gtateful for
some comment.

Regards,
Gudni


My System SpecsSystem Spec
Old 03-31-2008   #2 (permalink)
Gudni G. Sigurdsson


 
 

RE: Hierarchial Update

Hi, again.
Today, I tried something else. I had come to suspect that my problems had
something to do with my operating on an Access database and not a SQL Server
database like the Northwind. In my Access database, I had defined relations
between the tables and enforced Referential Integrity. When I dropped this
requirement, my problems with Update disappeared. Now, this may not be the
proper thing to do, but at least it enabled me to continue. I would very
much appreciate a comment on this.

Regards,
Gudni

"Gudni G. Sigurdsson" wrote:
Quote:

> Hi.
> I have recently started using VS2008 after having used VS2005 in the past.
> I have problems with updating related tables in an Access database
> (Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=F:\Fjarskiptabunadur\FjarskiptaBunadur.mdb). I have 2 tables:
> Producers and Units, the former being the parent the latter the child table.
> When I change e.g. the name of a producer (not a key column in that table)
> and try to save the changes, I get a message like The record cannot be
> deleted or changed because table 'Units' includes related records.
> I have worked through the HierarchialUpdateWalkthrough
> example with the Northwind database (tables Customers and Orders) and that
> works as expected. In my own example, I think I am doing everything in the
> same way as in the Northwind example with tableAdapterManager and everything.
> The only difference is that the Northwind example works and mine doesn´t.
>
> I have tried to solve this for some time now and would be very gtateful for
> some comment.
>
> Regards,
> Gudni
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
instAllshield update service update manager vista error requirespermission Vista security
windows update fails to update to new version with error code 8007 Vista General
Latest Windows Update/Vista Update Speeds up Boot/Startup Vista General
Windows update error 80070103 - Beta 2 Vista NVIDIA Driver Update Vista General
Update or Instal Vista fails "Windows could not update registry da Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46