Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another 1-to-many problem with SQL server and VFP
Message
From
05/12/1997 00:31:16
Ron Tse-Jung Huang
Leader Professional Consulting
Shin-Chu, Taiwan
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00063768
Message ID:
00063965
Views:
50
>Ron,
>
>It sounds like you have a unique index on the ord_id field in order_item. If I understand what you're trying to do, this is not something you want. I assume orders can have multiple items which means that the ord_id field in order_item will not be unique.
>
>Also, are you getting the primary key from the order table and putting it in order_item before you send your update?
>
>

Dear Josh,
I have checked whether there is any unique index on order_item.ord_id, and the result is no. (It sounds a little stupid that we here keeping trying check.:-)) And afterward, we decide to change the field name ord_id in order_item to another one, seeing whether the same problem would occur. In fact, just after change, the same problem occur, however, after re-structuring the order_item table, this problem seems gone. I am wondering whether it is possible that there is remained information about the unique index that might be done before. However, this is still open to observation.
Previous
Reply
Map
View

Click here to load this message in the networking platform