Click here to Skip to main content
13,145,568 members (45,188 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i have three tables in data base.parent table have to foreign key which are primary keys for the other tables.i want to update the tables and i want to change the foreign key .but i am getting can i update foreign key help me.
Posted 31-Aug-12 22:59pm
Sandeep Mewara 1-Sep-12 6:49am
What/How were you trying to update? What error were you getting?

You can change the relation FK from one FK to other but cannot modify the FK number.
Christian Amado 2-Sep-12 11:31am
What's the error here?
Roliking 2-Sep-12 12:49pm
you need to make sure the fk you are trying to update is present as a pk in the table which the fk is mapped to.

It would be helpful if you provide some code and the error that you are getting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 1 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100