
08-Nov-2005, 12:52 PM
|  | Guest | | | | | | | | | | Re: Breaking and reestablishing relationships While this can be done, it's rarely a wise approach.
Usually it's enough to import into the "master" table first, then the child
table.
If there are items in the data to be imported, which you don't want to keep
because they break referential integrity, I'd suggest importing to a
temporary table and using a query to identify those items. Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844
"tcb" wrote in message
news:1131366586.049105.236770@f14g2000cwb.googlegr oups.com...
> Is the relationship between two tables an object that can be
> maniuplated in code? Setting referential integrity, relationship type,
> cascading deletes and such?
>
> I'd like to break the relationship to several tables, import records,
> then reset the relationships (one to many).
>
> tblCourse --> tblCourseDetail
>
> tblCourse <-- tblAgency
> | 
08-Nov-2005, 12:52 PM
|  | Guest | | | | | | | | | | Re: Breaking and reestablishing relationships The way the database was set up, there is a one-many relationship
between tblCourse (master) and tblCourseDetail (child).
There is a one to many from tblAgency (master) to tblCourse (child). Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844
In one case tblCourse is the master and in the other, the child, which
creates the dilemma.
How is the relationship object referred to in VB? | 
08-Nov-2005, 12:53 PM
|  | Guest | | | | | | | | | | Re: Breaking and reestablishing relationships I don't see a problem - Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844
Import your tables in this order:
tblAgency
tblCourse
tblCourseDetail
"tcb" wrote in message
news:1131372079.761641.228700@g44g2000cwa.googlegr oups.com...
> The way the database was set up, there is a one-many relationship
> between tblCourse (master) and tblCourseDetail (child).
>
> There is a one to many from tblAgency (master) to tblCourse (child). Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844
>
> In one case tblCourse is the master and in the other, the child, which
> creates the dilemma.
>
> How is the relationship object referred to in VB?
> | 
09-Nov-2005, 17:50 PM
|  | Guest | | | | | | | | | | Re: Breaking and reestablishing relationships I'm no good at chess either.
Initially I was getting "records not imported" type errors which had I Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6844
looked closer were not key violations. The developer had added
validation rules to the new tables.
Nonetheless I still missed what will be forever obvious now.
Thanks. | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |