Board index » delphi » foreign and primary key do not match?

foreign and primary key do not match?

I have been restructuring and editing a table, and when I went to pack it
and save it ...
it gave me this error?

foreign and primary key do not match

Any ideas how to fix this..

Thanks

Alex

 

Re:foreign and primary key do not match?


Follow up:

I am using to the Database desktop to restructure this?

I am trying to change the primary key from an autoincrement to an integer...

But it gives me the following error....

foreign and primary key do not match

any ideas how to fix this..

Thanks

Alex

Quote

Re:foreign and primary key do not match?


Finally ....it works...........

I did not have referential integrity on this table.....but the following
fixed it...

Created new table (copy structure , only primary key and secondary indexes)_
Add records from table(not working)...
Saved and Packed ....and everything works.....
Not exactly sure what happened....

Thanks

Alex E.

Brian Bushay TeamB <BBus...@Nmpls.com> wrote in message
news:385488da.50407149@floyd...

Quote

> >I am using to the Database desktop to restructure this?

> >I am trying to change the primary key from an autoincrement to an
integer...

> >But it gives me the following error....

> >foreign and primary key do not match

> >any ideas how to fix this..

> Remove referential integrity links before you restructure the table.

> --
> Brian Bushay (TeamB)
> Bbus...@NMPLS.com

Re:foreign and primary key do not match?


Quote
>I am using to the Database desktop to restructure this?

>I am trying to change the primary key from an autoincrement to an integer...

>But it gives me the following error....

>foreign and primary key do not match

>any ideas how to fix this..

Remove referential integrity links before you restructure the table.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads