473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Drop/Recreate parent table

I have a parent table that has 2 child tables. I need to drop and
recreate the parent table because there has been a change to one of the
column types. What should I do prior to dropping the table to make
sure that when recreated and reloaded it will identify the child
tables? This may sound like a dumb question. In test, I exported the
data out then dropped the table and recreated it and reloaded the data.
However, after reloading the data, the table doesn't identify the
child tables as being related when I select Show Related in the Control
Center. Did I leave something out of the process before dropping the
table or is there something I still need to do to make the table
recognize its relationship to the other 2 tables? Thanks for any help.
Matt

Jun 7 '06 #1
1 2945
You need to re-create the RELATIONSHIP after you drop-re-created the
table.

cheers...
Shashi Mannepalli
Matt wrote:
I have a parent table that has 2 child tables. I need to drop and
recreate the parent table because there has been a change to one of the
column types. What should I do prior to dropping the table to make
sure that when recreated and reloaded it will identify the child
tables? This may sound like a dumb question. In test, I exported the
data out then dropped the table and recreated it and reloaded the data.
However, after reloading the data, the table doesn't identify the
child tables as being related when I select Show Related in the Control
Center. Did I leave something out of the process before dropping the
table or is there something I still need to do to make the table
recognize its relationship to the other 2 tables? Thanks for any help.
Matt


Jun 7 '06 #2

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

Similar topics

1
by: Marion Jakob | last post by:
hi i'm using mssql server 2000 i want to remove a not null column constraint from the column answertext in table answertext. i tried the following line ALTER TABLE AnswerText ALTER COLUMN...
2
by: Yve | last post by:
Hello, I am new here and received good advice many times before by just reading - now I would like to ask this question: I have got a frameset of 5 frames: navigation and 4 content-frames. How...
0
by: Bart | last post by:
Hello Sometimes i need to drop one of my tables. DROP TABLE removes all foreign keys connected with that table. After this i need to recreate FK. It is not easy to find dropped keys, so i...
5
by: Markus | last post by:
I tried this: ALTER TABLE Dokumente DROP COLUMN docPrioID but I get this errormessage: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: COLUMN;ABLE Dokumente DROP;CONSTRAINT
3
by: Brian Henry | last post by:
So what is the easiest way to do this? I have one list view with a list of items (in detail view and with about 20 sub items) and a second list view that will take the items they drag from the...
3
by: Challenge | last post by:
Hi, I have a table creation script that generated by ERWin. An index name is too long and has been truncated as "XPKsp_prj_stk_ord_". Now I want to drop and recreate it as another name. I got...
1
by: dsdevonsomer | last post by:
Hello all, I am new to managing indexes on large tables and need some help. Hopefully, I am not repeating question here. I searched as much as I can, but not finding relatively best answer.. ...
4
by: Joseph | last post by:
Can i drop a cloumn from a table in DB2 for Z/OS?
7
by: wizardry | last post by:
hello - i've created a drop down menu in dreamweaver, it selects my states from a list table that i have for users table. I went from enum to list table and created a fk to the parent table. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.